Parallel RNG with foreach + doMC inside function call
I’d like to write a function that automates the foreach
/ %dopar%
syntax within a function. Specifically, I’d like to generate a list NREP
evaluations of EXPR
. On my four core machine, the following call