options('redis:num'=TRUE) has to be used
Closed this issue · 2 comments
andreyto commented
Otherwise, running example foreach loop returns an error:
> foreach(j=1:10,.combine=sum,.multicombine=TRUE) %dopar%
+ 4*sum((runif(1000000)^2 + runif(1000000)^2)<1)/10000000
Error in sprintf("%s:%.0f.env", queue, ID) :
invalid format '%.0f'; use format %s for character objects
The error is generated inside redisWorker()
function.
Maybe the documentation can be updated to require options() call?
andreyto commented
I see that this has been already changed in current Github code. I was using the version from CRAN.
bwlewis commented
Thanks, yes I'll try to get the dev version submitted to CRAN this week.