Closed srfall closed 5 months ago
Checkmate contains some calls to ls(), mostly in the form of wf(contains %nin% ls(x, all.names = TRUE)) e.g: https://github.com/mllg/checkmate/blob/HEAD/R/checkEnvironment.R#L27
ls()
wf(contains %nin% ls(x, all.names = TRUE))
From my understanding, within these calls the order doesn't matter and one could improve the performance by adding sorted = FALSE as an argument (at least thats what I gathered from https://stat.ethz.ch/R-manual/R-devel/library/base/html/ls.html).
sorted = FALSE
Ok, nevermind seems like there was a reason to do it this way: https://github.com/mllg/checkmate/commit/409793c2dfda8f2ac125e53cd4a232913d0faf35
Checkmate contains some calls to
ls()
, mostly in the form ofwf(contains %nin% ls(x, all.names = TRUE))
e.g: https://github.com/mllg/checkmate/blob/HEAD/R/checkEnvironment.R#L27From my understanding, within these calls the order doesn't matter and one could improve the performance by adding
sorted = FALSE
as an argument (at least thats what I gathered from https://stat.ethz.ch/R-manual/R-devel/library/base/html/ls.html).