Skip to content

rstantools

Tools for Developing R Packages Interfacing with 'Stan'

v2.6.0 · Jan 10, 2026 · GPL (>= 3)

Description

Provides various tools for developers of R packages interfacing with 'Stan' <https://mc-stan.org>, including functions to set up the required package structure, S3 generics and default methods to unify function naming across 'Stan'-based R packages, and vignettes with recommendations for developers.

Downloads

CRAN

348.5K

Last 30 days

180th

671.8K

Last 90 days

1.7M

Last year

Trend: +85.8% (30d vs prior 30d)

r2u CRAN

1.2K

Last 30 days

3.9K

Last 90 days

12.2K

Last year

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

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rstantools)
  This is rstantools version 2.6.0
  > 
  > foo <- function(x) {"test function"}
  > 
  > if (identical(Sys.gete
...[truncated]...
an_create_package.R:63:5
   2.   └─rstantools:::.rstan_make_pkg(...)
   3.     └─rstantools::rstan_config(pkgdir)
   4.       └─Rcpp::compileAttributes(pkgdir)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 42 ]
  Error:
  ! Test failures.
  Execution halted

Reverse Dependencies (152)

Dependency Network

Dependencies Reverse dependencies desc Rcpp RcppParallel Rlgt bistablehistory AovBay BINtools BPrinStratTTE BRRAT BayesERtools BayesGmed BayesGrowth BayesSenMC BayesianPlatformDesignTimeTrend BeeGUTS Bernadette BinaryReplicates BoundIRT +137 more reverse deps rstantools

Version History

18 tracked
new 2.6.0 Mar 10, 2026
updated 2.6.0 ← 2.5.0 diff Jan 9, 2026
updated 2.5.0 ← 2.4.0 diff Aug 31, 2025
updated 2.4.0 ← 2.3.1.1 diff Jan 30, 2024
updated 2.3.1.1 ← 2.3.1 diff Jul 17, 2023
updated 2.3.1 ← 2.3.0 diff Mar 29, 2023
updated 2.3.0 ← 2.2.0 diff Mar 8, 2023
updated 2.2.0 ← 2.1.1 diff Apr 7, 2022
updated 2.1.1 ← 2.0.0 diff Jul 5, 2020
updated 2.0.0 ← 2.1.0 diff Jun 4, 2020
updated 2.1.0 ← 1.5.1 diff May 31, 2020
updated 1.5.1 ← 1.5.0 diff Aug 21, 2018
updated 1.5.0 ← 1.4.0 diff Apr 16, 2018
updated 1.4.0 ← 1.3.0 diff Dec 20, 2017
updated 1.3.0 ← 1.2.0 diff Aug 1, 2017