Skip to content

Commit

Permalink
remove overly-cautious keepNA=TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed May 9, 2024
1 parent 29ee88b commit bb63c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ merge.data.table = function(x, y, by = NULL, by.x = NULL, by.y = NULL, all = FAL
if (length(list(...))) {
ell = as.list(substitute(list(...)))[-1L]
for (n in setdiff(names(ell), "")) warningf("Unknown argument '%s' has been passed.", n)
unnamed_n = length(ell) - sum(nzchar(names(ell), keepNA=TRUE))
unnamed_n = length(ell) - sum(nzchar(names(ell)))
if (unnamed_n)
warningf("Passed %d unknown and unnamed arguments.", unnamed_n)
}
Expand Down

0 comments on commit bb63c8b

Please sign in to comment.