Closed Zedseayou closed 3 years ago
Addressed by existing PR #268
Why doesn't CI surface this? 🤔 If I have similar code in a package, locally I see:
N checking R code for possible problems (6.4s)
foofy: warning in rank(1:4, ties = "random"): partial argument match of
'ties' to 'ties.method'
fct_lump_n
uses partial argument matching when it callsrank
, which generates a lot of warnings if you haveoptions(warnPartialMatchArgs = TRUE)
and repeatedly call the function (e.g. in a grouped operation).I think the culprit is here, with the named argument given as
ties
instead ofties.method
. https://github.com/tidyverse/forcats/blob/ab81d1bf8ef8d1b776dd2a2030e9c664e54df239/R/lump.R#L149-L154I haven't tried making the change but happy to PR if this would be welcome. I realise
rank
is unlikely to change signature but at least for me squelching the warnings would be great