Skip to content

doRNG

Generic Reproducible Parallel Backend for 'foreach' Loops

v1.8.6.3 · Feb 5, 2026 · GPL (>= 2)

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

CRAN

32K

Last 30 days

638th

109.9K

Last 90 days

418K

Last year

Trend: -17.5% (30d vs prior 30d)

r2u CRAN

741

Last 30 days

2.5K

Last 90 days

8.4K

Last year

Trend: -8.3% (30d vs prior 30d)

autoCRAN

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

13 OK
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
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘doMPI’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘doMPI’
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 1, 2026
ERROR r-devel-linux-x86_64-debian-gcc

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
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘doMPI’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘doMPI’
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘doMPI’
NOTE r-oldrel-macos-x86_64

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

R 669 (42.4%)Tests 503 (31.9%)Docs 405 (25.7%)

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

v1.0.2: 971 LOCv1.1: 989 LOCv1.2.1: 1,574 LOCv1.2.2: 1,794 LOCv1.2.6: 1,995 LOCv1.3: 1,961 LOCv1.4.1: 10,098 LOCv1.4.5: 9,619 LOCv1.5: 1,595 LOCv1.5.3: 1,607 LOCv1.5.4: 1,595 LOCv1.5.5: 1,595 LOCv1.6: 1,613 LOCv1.6.6: 1,655 LOCv1.7.1: 1,898 LOCv1.8.2: 2,089 LOCv1.8.3: 1,472 LOCv1.8.6: 2,098 LOCv1.8.6.1: 2,098 LOCv1.8.6.2: 1,483 LOCv1.8.6.3: 1,577 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (104)

Dependency Network

Dependencies Reverse dependencies foreach rngtools iterators BayesRegDTR EPX SparseMDC rpm BSL CAFT CDatanet CICI Counterfactual DynForest FLORAL GeDS LSEbootLS MCPModBC Mediana +89 more reverse deps doRNG

Version History

22 tracked
new 1.8.6.3 Mar 10, 2026
updated 1.8.6.3 ← 1.8.6.2 diff Feb 4, 2026
updated 1.8.6.2 ← 1.8.6.1 diff Apr 1, 2025
updated 1.8.6.1 ← 1.8.6 diff Jan 12, 2025
updated 1.8.6 ← 1.8.3 diff Jan 15, 2023
updated 1.8.3 ← 1.8.2 diff Dec 18, 2022
updated 1.8.2 ← 1.7.1 diff Jan 26, 2020
updated 1.7.1 ← 1.6.6 diff Jun 21, 2018
updated 1.6.6 ← 1.6 diff Apr 9, 2017
updated 1.6 ← 1.5.5 diff Mar 6, 2014
updated 1.5.5 ← 1.5.4 diff Sep 23, 2013
updated 1.5.4 ← 1.5.3 diff Sep 18, 2013
updated 1.5.3 ← 1.5 diff Mar 11, 2013
updated 1.5 ← 1.4.5 diff Nov 6, 2012
updated 1.4.5 ← 1.4.1 diff Jul 23, 2012