Ratio-of-Uniforms Simulation with Transformation
Overview
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.
Bug fixes and minor improvements
- Implements the patch described in Rcpp Issue #1406 to avoid masking of
Rf_error().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 67%8 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 77%
- Documented parameters
- 87%
- Return-value docs
- 77%
- Help pages citing references
- 50%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 64
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/paulnorthrop/rust on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing rust adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.4.4Latest
- RR 4.5.0 released · 2025-04-11
- 1.4.32024-08-17 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.4.22023-12-02 · diff ↗
- 1.4.12023-09-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.4.02022-11-16 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.3.132021-10-31 · diff ↗
- 1.3.122021-06-03 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.3.112021-02-08 · diff ↗
- 1.3.102020-09-02 · diff ↗
- 1.3.92020-07-21 · diff ↗
Show 17 earlier eventsHide 17 earlier events
- RR 4.0.0 released · 2020-04-24
- 1.3.82019-12-20 · diff ↗
- 1.3.72019-11-27 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.3.62019-02-10 · diff ↗
- 1.3.52018-05-16 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.3.42017-12-22 · diff ↗
- 1.3.32017-12-17 · diff ↗
- 1.2.32017-08-28 · diff ↗
- 1.2.22017-06-01 · diff ↗
- 1.2.12017-06-01 · diff ↗
- 1.2.02017-05-27 · diff ↗ ·
added 10 exports
create_log_j_xptr, create_phi_to_theta_xptr, create_xptr, find_lambda_one_d_rcpp, find_lambda_rcpp, gpd_init, gpd_logpost, gpd_sum_stats, rgpd, ru_rcpp - RR 3.4.0 released · 2017-04-21
- 1.1.02016-11-18 · diff ↗
- 1.0.02016-10-10
- RR 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rust")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.