Skip to content
Prev 1864 / 2152 Next

doMC and reproducible parallel numbers under plyr

Since the doMC package now uses the "parallel" package, you can use
the same techniques as when using mclapply directly. The documentation
(actually for mcparallel) says:

     The behaviour with 'mc.set.seed = TRUE' is different only if
     'RNGkind("L'Ecuyer-CMRG")' has been selected.  Then each time a
     child is forked it is given the next stream (see 'nextRNGStream').
     So if you select that generator, set a seed and call
     'mc.reset.stream' just before the first use of 'mcparallel' the
     results of simulations will be reproducible provided the same
     tasks are given to the first, second, ...  forked process.

I haven't tried this with plyr, but it's worth try.

- Steve
On Wed, Feb 26, 2014 at 1:06 PM, Aaron King <kingaa at umich.edu> wrote: