use_doRNG: Use doRNG package for reproducibility

View source: R/helper_functions.R

use_doRNGR Documentation

Use doRNG package for reproducibility

Description

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

Usage

use_doRNG(dorng)

Arguments

dorng

(logical) Use doRNG instead of normal foreach loops?

Value

NULL, Internally will change the corresponding option in R environment.

Examples

## 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)

moosa-r/parapurrr documentation built on July 14, 2022, 11:20 a.m.