Skip to content

rust

1.4.4

Ratio-of-Uniforms Simulation with Transformation

6packages depend
33.4Kdownloads / year
66.7%test coverage
13/13checks pass

Overview

About
Maintained by Paul J. NorthropFirst published 2016-10-1022 releasesCRAN page ↗GitHub ↗

Uses the generalized ratio-of-uniforms (RU) method to simulate from univariate and (low-dimensional) multivariate continuous distributions. The user specifies the log-density, up to an additive constant. The RU algorithm is applied after relocation of mode of the density to zero, and the user can choose a tuning parameter r. For details see Wakefield, Gelfand and Smith (1991) DOI:10.1007/BF01889987, Efficient generation of random variates via the ratio-of-uniforms method, Statistics and Computing (1991) 1, 129-133. A Box-Cox variable transformation can be used to make the input density suitable for the RU method and to improve efficiency. In the multivariate case rotation of axes can also be used to improve efficiency. From version 1.2.0 the 'Rcpp' package https://cran.r-project.org/package=Rcpp can be used to improve efficiency.

Install

Health

CRAN checks
13OK
Slowest check: 10.7 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.22
66.7%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 207 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
67%
Documented parameters
87%
Return-value docs
77%
References docs
50%

Downloads

33.4K
CRAN downloads in the past year
Rank #2,490 · ~92/day · ~2.8K/mo
Daily download trend is not available in this view yet.
2.2K30 days
8K90 days
33.4K1 year
Compare downloads with other packages →
Also on558 r2u13 autocran87 c2d4u

Repository

Repository
0Stars
1Forks
0Open issues
0Open PRs
20Releases
579Commits
1Contributors
simulationrcppratio-of-uniformstransformationratioofuniformsbayesian-inference
License GPL-3.0 · 579 commits · Last activity 2026-01-11

Forks over time

2018-05-20 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/paulnorthrop/rust on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.3.0
Imports (3)
graphicsRcppstats
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
6direct
2indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Listed in earlier versions (2)
no longer listed · 1.0.0
no longer listed · 1.1.0 to 1.4.4
Package Timeline

22 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.4Latest
    2026-01-11 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.4.3
    2024-08-17 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.4.2
    2023-12-02 · diff ↗
  • 1.4.1
    2023-09-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.4.0
    2022-11-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.3.13
    2021-10-31 · diff ↗
  • 1.3.12
    2021-06-03 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3.11
    2021-02-08 · diff ↗
  • 1.3.10
    2020-09-02 · diff ↗
  • 1.3.9
    2020-07-21 · diff ↗
Show 17 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.8
    2019-12-20 · diff ↗
  • 1.3.7
    2019-11-27 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3.6
    2019-02-10 · diff ↗
  • 1.3.5
    2018-05-16 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.3.4
    2017-12-22 · diff ↗
  • 1.3.3
    2017-12-17 · diff ↗
  • 1.2.3
    2017-08-28 · diff ↗
  • 1.2.2
    2017-06-01 · diff ↗
  • 1.2.1
    2017-06-01 · diff ↗
  • 1.2.0
    2017-05-27 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.1.0
    2016-11-18 · diff ↗
  • 1.0.0
    2016-10-10
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-10-10
Total releases
22 / 10 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.3.0
Download size
777 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rust")
Northrop, P. J. (2026). rust: Ratio-of-Uniforms Simulation with Transformation (Version 1.4.4) [Computer software]. https://doi.org/10.32614/CRAN.package.rust

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the 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 rust version 1.4.4 [Data set]. HJJB, LLC. Data release v2026-08-13. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy