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
32K
Last 30 days
638th
109.9K
Last 90 days
418K
Last year
Trend: -17.5% (30d vs prior 30d)
741
Last 30 days
2.5K
Last 90 days
8.4K
Last year
Trend: -8.3% (30d vs prior 30d)
1
Last 7 days
11
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 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-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| 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 History
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
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’
Code
Structure
Lines of code
1,577
Files
21
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
3
Internal functions
9
Testing & CI
Has tests
Yes
Test-to-code ratio
0.75
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
0%
Roxygen coverage
66.7%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
0%
Unsafe pattern score
0
Dep constraint coverage
20%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.0.0
System requirements
–
C++ standard
–
License
GPL (>= 2)
License flags
SPDX valid, OSI approved
History
Versions
21
First release
2010-08-20
Latest release
2026-02-05
Avg cadence
54 days
Cold removal rate
100%
Dep drift
9
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.