R Observatory
Search
install.packages("dqrng")
CRAN 30-day downloads, method
56,895+7% up on the 30 days before, the better direction
Test coverage, method
91%of lines run by tests

Several fast random number generators are provided as C++ header only libraries: The PCG family by O'Neill (2014 <https://www.cs.hmc.edu/tr/hmc-cs-2014-0905.pdf>) as well as the Xoroshiro / Xoshiro family by Blackman and Vigna (2021 <doi:10.1145/3460772>).

Full description

Several fast random number generators are provided as C++ header only libraries: The PCG family by O'Neill (2014 <https://www.cs.hmc.edu/tr/hmc-cs-2014-0905.pdf>) as well as the Xoroshiro / Xoshiro family by Blackman and Vigna (2021 <doi:10.1145/3460772>). In addition fast functions for generating random numbers according to a uniform, normal and exponential distribution are included. The latter two use the Ziggurat algorithm originally proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>). The fast sampling methods support unweighted sampling both with and without replacement. These functions are exported to R and as a C++ interface and are enabled for use with the default 64 bit generator from the PCG family, Xoroshiro128+/++/** and Xoshiro256+/++/** as well as the 64 bit version of the 20 rounds Threefry engine (Salmon et al., 2011, <doi:10.1145/2063384.2063405>) as provided by the package 'sitmo'.

Maintainer
Ralf Stubner
Licence
AGPL-3
Latest release
28 May 2024
First release
11 May 2018

Compare with another package

More details
Releases
13
Needs compilation
Yes
Needs R
>= 3.5.0
RoxygenNote
7.3.1
Task views (2)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("dqrng")
APA
Stubner, R., David Blackman, Melissa O'Neill, Sebastiano Vigna, daqana GmbH, Butts, K., Grosjean, P., Lun, A., & Sloot, H. (2024). dqrng: Fast Pseudo Random Number Generators (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.dqrng
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for dqrng version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.4.1
    Time taken
    105 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.4.1
    Time taken
    84 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.4.1
    Time taken
    75 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.4.1
    Time taken
    88 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    239 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.4.1
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    147 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    196 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    100 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    100 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.4.1
    Time taken
    34 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    177 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.4.1
    Time taken
    173 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
22 Apr 2026OK14000
18 Apr 2026Error13001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
98,489+19% up on the 30 days before, the better directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

458 of 26,530

CRAN

56,895 downloads in the last 30 days

Rank
458 of 26,530
Change
+7% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

12,723 downloads in the last 30 days

Rank
269 of 30,526
Change
+198% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

7 downloads in the last 30 days

Rank
6,587 of 29,212
Change
−63.2% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

28,733 downloads in the last 30 days

Rank
260 of 3,828
Change
+15.7% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

131 downloads in the last 30 days

Rank
290 of 7,575
Change
−69.2% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
3
Dependent packages
12
Suggested by
1
Needs (3)
Installing it adds
3 packages, 15.9 MB of source
Of those, need compilation
2
Optional extras (7)
Dependent packages (12)
PackageTitleDownloads in 30 days
uwotThe Uniform Manifold Approximation and Projection (UMAP) Method for Dimensionality Reduction65,293
rnndescentNearest Neighbor Descent Method for Approximate Nearest Neighbors2,485
dexterData Management and Analysis of Tests1,058
bgmsBayesian Analysis of Graphical Models690
meltMultiple Empirical Likelihood Tests672
greeksSensitivities of Prices of Financial Options and Implied Volatilities638
FunChisqModel-Free Functional Chi-Squared and Exact Tests593
FastSurvivalFast Survival Analysis and Simulation for Clinical Trials454
GridOnClustersCluster-Preserving Multivariate Joint Grid Discretization381
colorrepelRepel Visually Similar Colors for Colorblind Users in Various Plots306
tetragonAutomatic Sequence Prediction by Expansion of the Distance Matrix234
HDMAADMMADMM for High-Dimensional Mediation Models210
Functions
75
Public exports
14
Lines of R code
368
Median complexity
1
Functions (75)
Size and composition

Lines by kind (3,913)

KindLinesShare
R code3689%
Tests1,04227%
Documentation3579%
Guides1,27233%
Compiled code87422%

Lines by language

LanguageLinesShare
R1,17830%
C++1,10628%
Vignettes1,08228%
Rd3579%
Other1905%

Languages are counted from file extensions.

Files
81
R functions
23
Compiled functions
52
Complexity
Median
1
Mean
1.52
Highest
7
Median lines per function
3
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
23
Calls
7
Unconnected
13
Groups
3
Growth (13 releases)
Total lines by release
787 on 11 May 20183,913 on 28 May 2024
Release changes

The tests ran and coverage was measured.

Lines run by tests
90.8%
Expressions run by tests
90.9%
Test cases
88
Exports named in tests
100%
Coverage by file (5)
Coverage run
Lines counted
29
Lines the tests ran
18
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat, tinytest
Test cases
88
Lines of tests
1,042
Test lines per line of code
2.83
Exports documented
100%
Arguments documented
100%
Return value documented
80%
Help pages with examples
66.7%
Examples run in checks
100%
Guides (4)
Other documentation
README
Yes, 204 words
Release notes file
Yes
Help pages
6
Lines of documentation
357

daqana / dqrng on github.com

Stars
50no change on 30 days ago
Forks
9
Open issues
16
Last commit
29 Jun 2025
Activity
Commits
228
Open pull requests
2
Tagged releases
11
Latest tagged release
v0.4.1, 28 May 2024
In development
Default branch at 0.4.1.1, ahead of CRAN 0.4.1 (checked 2026-10-25)
Issues closed in
10 days (median)
Pull requests closed in
2 days (median)
Pull requests merged
95%
Created
18 Apr 2018
Licence file reads as
–
Development practices (10)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd
GitHub Pages site last deployed 2025-06-29
The repository has a site deploy workflow
CoverageCoverage reporting (Codecov)
CRAN release processcran-comments.md
Lint, format, editorVS Code, RStudio project
Git structuralSubmodules

Method, repository practices

Across daqana

R releases
  • On CRAN
  • Release
VersionReleasedREvents
0.4.1 current29 May 20244.4.0
0.4.015 May 20244.4.0Licence: AGPL-3
0.3.229 Nov 20234.3.2
0.3.130 Aug 20234.3.1
0.3.01 May 20214.0.5
0.2.117 May 20193.6.0
0.2.022 Apr 20193.5.3
0.1.111 Mar 20193.5.3
Earlier versions (5)
VersionReleasedR
0.1.04 Mar 20193.5.2
0.0.531 Jan 20193.5.2
0.0.48 Jun 20183.5.0
0.0.314 May 20183.5.0
0.0.211 May 20183.5.0
Release notes (0.4.1)
  • Fix an UBSAN error found by CRAN (#90 fixing #89)
  • Fix a compilation error when the compiler does not provide a 128bit integer type (#90 fixing #88)
  • Disable PCG64 on MacOS PowerPC (#91 fixing #88)