Skip to content

Commit

Permalink
safer
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Nov 8, 2024
1 parent 038272b commit b0f2224
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/lapp.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ function(x, fun, ..., usenames=FALSE, cores=1, filename="", overwrite=FALSE, wop

if (usenames) {
fnames <- names(formals(fun))
x <- x[[names(x) %in% fnames]]
i <- names(x) %in% fnames
if (!all(i)) {
warn("lapp", paste(names(x)[!i], "are not used"))
x <- x[[names(x) %in% fnames]]
}
}


Expand Down

0 comments on commit b0f2224

Please sign in to comment.