Skip to content

Commit ec4e22a

Browse files
back to vapply
1 parent 1a39523 commit ec4e22a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/namespace_linter.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ namespace_symbols <- function(ns, exported = TRUE) {
131131
}
132132
}
133133
is_in_pkg <- function(symbols, namespaces, exported = TRUE) {
134-
mapply(
135-
function(pkg_sym, pkg_ns) pkg_sym %in% namespace_symbols(pkg_ns, exported = exported),
136-
symbols, namespaces
134+
vapply(
135+
seq_along(symbols),
136+
function(ii) symbols[[ii]] %in% namespace_symbols(namespaces[[ii]], exported = exported),
137+
logical(1L)
137138
)
138139
}
139140

0 commit comments

Comments
 (0)