%dorng% does not work unless the 'foreach' package is attached. This becomes a problem for packages who want to use 'foreach' and 'doRNG' internally without attaching those packages. The workaround for such packages is to also import %dopar% from 'foreach' even if they never use it.
A minimal example:
`%dorng%` <- doRNG::`%dorng%`
y <- foreach::foreach(x=1:2) %dorng% x
## Error in list(args = (1:2)(.doRNG.stream = list(c(10407L, -255388091L, :
## could not find function "%dopar%"
A similar do.call() problem was reported in Issue #13, which was fixed.
%dorng%does not work unless the 'foreach' package is attached. This becomes a problem for packages who want to use 'foreach' and 'doRNG' internally without attaching those packages. The workaround for such packages is to also import%dopar%from 'foreach' even if they never use it.A minimal example:
A similar
do.call()problem was reported in Issue #13, which was fixed.