Displaying 1 result from an estimated 1 matches for "r66050".
Did you mean:
66050
2014 Jun 29
0
[patch] Fix n arg in mclapply call to ngettext
...ar otherwise. What we want is for the plural
message to be given if more than one core encountered errors. Changing the n
arg of ngettext from has.errors to length(has.errors) leads to the correct
messages.
Attached is a patch.
More details for completeness:
I've reproduced this on 3.1.0 and r66050.
Below is an example that leads to bad output sometimes (depending on
the order in which the cores finish).
library(parallel)
options(mc.cores = 4)
abc <- mclapply(2:5, FUN = function(x) stopifnot(x >= 4))
# Warning message:
# In mclapply(2:5, FUN = function(x) { :
# scheduled core 1, 2 en...