pbmcapply icon indicating copy to clipboard operation
pbmcapply copied to clipboard

Issue with differing behaviour from mcapply

Open joelkandiah opened this issue 3 years ago • 0 comments

I don't believe it is documented in the code but there is a choice when using seeded pbmclapply to use the mc.set.stream() function where the mclapply uses mc.reset.stream(). In pbmclapply this is called in the utils.R file through the .customized_mcparallel() function. This has been raised on stackoverflow as a query here: https://stackoverflow.com/questions/67655726/parallel-processing-in-r-setting-seed-with-mclapply-vs-pbmclapply/69595595#69595595 The decision on how to proceed may additionally be linked to another stackoverflow query as expected behaviour may be different for different users: https://stackoverflow.com/questions/15070377/r-doesnt-reset-the-seed-when-lecuyer-cmrg-rng-is-used

joelkandiah avatar Oct 16 '21 16:10 joelkandiah