View source: R/helper_functions.R
use_doRNG | R Documentation |
doRNG package provides functions to perform reproducible parallel foreach loops. By calling this function, you can force parapurrr to use doRNG with combination of your any selected doPar adaptor to create fully reproducible parallel function calls. see: doRNG: Generic Reproducible Parallel Backend for 'foreach' Loops
use_doRNG(dorng)
dorng |
(logical) Use doRNG instead of normal foreach loops? |
NULL, Internally will change the corresponding option in R environment.
## Not run: use_doRNG(TRUE) set.seed(100) x <- pa_map(1:3, runif) set.seed(100) y <- pa_map(1:3, runif) identical(x,y) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.