Skip to content
Prev 2110 / 2152 Next

doParallel: RNG not reproducible

Hi Christian,

thanks a lot for your reply. I was aware of the "doRNG" package but due to
the fact that it supports nested foreach() loops only using a workaround,
I preferred to stick to the original "doParallel" package. Besides, I
posted this issue since I thought it might be worth a bug fix (or a new
feature) in "doParallel". As the non-reproducibility is only subtle
(occuring only sometimes when workers seem to be assigned different
tasks), I thought it might not have come to the package authors' attention
yet. (In the doRNG package's vignette, the function set.seed() is used
when demonstrating that results aren't reproducible, so I thought it might
be worth showing that the non-reproducibility also occurs with
clusterSetRNGStream().)

Nevertheless, if this is a known issue and a bug fix (or a new feature)
for "doParallel" is not planned, I might have to use the workaround for
nested loops shown in the vignette of "doRNG".

Thanks again and best regards,
Frank Weber