You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be wrong but it seems that there is a problem with this code, which is used in the lmerModList() family of functions:
if(parallel) {
if (requireNamespace("future.apply", quietly=TRUE)) {
ml <- future.apply::future_lapply(data, function(d) blmer(formula, data = d, ...))
}
warning("Parallel set but future.apply not available. Running sequentially.")
ml <- lapply(data, function(d) blmer(formula, data = d, ...))
}
If the future function is available, the line ml <- future.apply... will be run BUT the warning() line and the line after that will ALSO be run.
So whether or not future.apply is available, the warning will still be printed, and the regular lapply line will still run.
An else would solve this I think.
The text was updated successfully, but these errors were encountered:
Thanks for the fantastic package!
I may be wrong but it seems that there is a problem with this code, which is used in the
lmerModList()
family of functions:If the future function is available, the line
ml <- future.apply...
will be run BUT thewarning()
line and the line after that will ALSO be run.So whether or not future.apply is available, the warning will still be printed, and the regular
lapply
line will still run.An
else
would solve this I think.The text was updated successfully, but these errors were encountered: