doRNG
Generic Reproducible Parallel Backend for 'foreach' Loops
Description
Provides functions to perform reproducible parallel foreach loops, using independent random streams as generated by L'Ecuyer's combined multiple-recursive generator [L'Ecuyer (1999), <DOI:10.1287/opre.47.1.159>]. It enables to easily convert standard '%dopar%' loops into fully reproducible loops, independently of the number of workers, the task scheduling strategy, or the chosen parallel environment and associated foreach backend.
Downloads
37.2K
Last 30 days
608th
108K
Last 90 days
395.9K
Last year
Trend: -8.3% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (4 non-OK)
Rd cross-references
Package unavailable to check Rd xrefs: ‘doMPI’
package dependencies
Package suggested but not available for checking: ‘doMPI’
Rd cross-references
Package unavailable to check Rd xrefs: ‘doMPI’
package dependencies
Package suggested but not available for checking: ‘doMPI’
Check History
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 2, 2026
package dependencies
Package suggested but not available for checking: ‘doMPI’
package dependencies
Package suggested but not available for checking: ‘doMPI’
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 1, 2026
tests
Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(doRNG)
Loading required package: foreach
Loading required package: rngtools
>
> test_check("doRNG")
Saving _pro
...[truncated]...
▆
1. └─parallel::makeCluster(2) at test-dorng.r:253:5
2. └─parallel::makePSOCKcluster(names = spec, ...)
3. └─base::serverSocket(port = port)
[ FAIL 2 | WARN 1 | SKIP 3 | PASS 68 ]
Error:
! Test failures.
Execution halted
package dependencies
Package suggested but not available for checking: ‘doMPI’
package dependencies
Package suggested but not available for checking: ‘doMPI’
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
package dependencies
Package suggested but not available for checking: ‘doMPI’
package dependencies
Package suggested but not available for checking: ‘doMPI’