Skip to content

Ratio-of-Uniforms Simulation with Transformation

6packages depend
27.9Kdownloads / year
66.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.4.4

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

CRAN checks
13OK
Slowest check: 5.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.4
READMEYes · 207 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.4.4Citation fileNoWebsiteYes · pkgdown
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

27.9K
CRAN downloads in the past year
Rank #2,755 · ~77/day · ~2.3K/mo
Daily download trend is not available in this view yet.
1.9K30 days
5.5K90 days
27.9K1 year
Compare downloads with other packages →
Also on667 r2u4 autocran167 c2d4u

Repository

0Stars
1Forks
0Open issues
0Open PRs
20Releases
579Commits
1Commit identities
simulationrcppratio-of-uniformstransformationratioofuniformsbayesian-inference
License file reads as GPL-3.0 · 579 commits · Last activity 2026-01-11
Responsiveness
How these are sampled
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

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

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-11

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing rust adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (1)
R >= 3.3.0
Imports (3)
graphicsRcppstats
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
6direct
2indirect
Imports 6
Depends, Imports or LinkingTo, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0.0 (2016), Copyright holder
Listed in earlier versions (2)
no longer listed · 1.0.0
Paul J.
no longer listed · 1.1.0 to 1.4.4
Releases (22)

Pick two releases to compare their code metrics.

Show 17 earlier eventsHide 17 earlier events

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
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 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rust version 1.4.4 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

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