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
103.5K
Last 30 days
323rd
103.5K
Last 90 days
103.5K
Last year
CRAN Check Status
1
ERROR
13
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | 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 details (14 non-OK)
OK
r-devel-linux-x86_64-debian-clang
*
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘testthat.R’ [7s/7s]
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.getenv("TRAVIS"), "true")) {
+ test_check("rstantools", filter = "methods")
+ } else {
+ test_check("rstantools")
+ }
Package: RStanTest
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R (parsed):
* First Last <first.last@example.com> [aut, cre]
Description: What the package does (one paragraph).
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
license
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Saving _problems/test-rstan_config-43.R
Package: RStanTest
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R (parsed):
* First Last <first.last@example.com> [aut, cre]
Description: What the package does (one paragraph).
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
license
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Saving _problems/test-rstan_create_package-66.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 42 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-rstan_config.R:40:1'): (code run outside of `test_that()`) ─────
<Rcpp::not_compatible/C++Error/error/condition>
Error: Expecting a string vector: [type=logical; required=STRSXP].
Backtrace:
▆
1. └─rstantools::rstan_create_package(...) at test-rstan_config.R:40:1
2. └─rstantools:::.rstan_make_pkg(...)
3. └─rstantools::rstan_config(pkgdir)
4. └─Rcpp::compileAttributes(pkgdir)
── Error ('test-rstan_create_package.R:63:5'): (code run outside of `test_that()`) ──
<Rcpp::not_compatible/C++Error/error/condition>
Error: Expecting a string vector: [type=logical; required=STRSXP].
Backtrace:
▆
1. └─rstantools::rstan_create_package(...) at test-rstan_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
OK
r-devel-linux-x86_64-fedora-clang
*
OK
r-devel-linux-x86_64-fedora-gcc
*
OK
r-devel-macos-arm64
*
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
*
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘testthat.R’ [7s/7s]
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.getenv("TRAVIS"), "true")) {
+ test_check("rstantools", filter = "methods")
+ } else {
+ test_check("rstantools")
+ }
Package: RStanTest
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R (parsed):
Reverse Dependencies (145)
depends
imports
AovBay
BINtools
BPrinStratTTE
BayesGmed
BayesGrowth
BayesSenMC
BayesianPlatformDesignTimeTrend
BeeGUTS
Bernadette
BinaryReplicates
CARME
CNVRG
CausalQueries
DCPO
EcoEnsemble
EloSteepness
EpiNow2
EpiPvr
FlexReg
GUD
LMMELSM
MADPop
MIRES
MetaStan
OncoBayes2
PoolTestR
ProbBreed
R2D2ordinal
RBesT
RoBTT
SLGP
StanMoMo
WhiteLabRt
YPBP
YPPE
baggr
bakR
baldur
bayes4psy
bayesZIB
bayesforecast
bayeslist
bclogit
beastt
bellreg
bennu
blavaan
bmgarch
bmggum
bmlm
bmstdr
breathteststan
brms
bsynth
bws
cbq
cloneRate
conStruct
conformalbayes
ctsem
densEstBayes
eDNAjoint
eggCounts
expertsurv
fcirt
geostan
glmmPen
glmmfields
glmmrBase
greencrab.toolkit
hbamr
historicalborrowlong
hmcdm
hmde
hsstan
hwep
imt
intervalpsych
jfa
lgpr
measr
metaBMA
miniLNM
mlts
morseTKTD
mrbayes
multinma
multipleDL
mvgam
ordbetareg
parTimeROC
pcFactorStan
pema
phacking
phylopairs
projpred
prome
prophet
psBayesborrow
psrwe
publipha
rPBK
rater
rbioacc
rcbayes
rmBayes
rstanarm
rstanbdp
rstanemax
rts2
saeHB.TF.beta
serofoi
serosv
spsurv
ssMousetrack
statsExpressions
surveil
survstan
thurstonianIRT
trialr
truncnormbayes
tsnet
ubms
walker
webSDM
winputall
zoid
Dependency Network
Version History
new
2.6.0
Mar 9, 2026