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.
(Github issue/PR numbers in parentheses)
fields
argument to rstan_package_skeleton()
and setting it internally
instead.nsamples()
(#35)(Github issue/PR numbers in parentheses)
New vignette walking through the package creation process. (#9) (thanks to Stefan Siegert)
rstan_package_skeleton()
now calls usethis::create_package()
instead of utils::package.skeleton()
. (#28)
Update rstan_package_skeleton()
for latest build process (#19)
rstan_package_skeleton()
now does a bit more work for the user to make sure the the NAMESPACE file is correct.
Simplify instructions in Read-and-delete-me (related to #19).
(Github issue/PR numbers in parentheses)
rstan_package_skeleton()
to correspond to rstanarm 2.17.2.(Github issue/PR numbers in parentheses)
bayes_R2()
generic and default method. (#8)(Github issue/PR numbers in parentheses)
init_cpp()
function for generating src/init.cpp
in order to pass R CMD
check in R 3.4.x. rstan_package_skeleton()
calls init_cpp()
internally. (#6)(Github issue/PR numbers in parentheses)
Minor fixes to rstan_package_skeleton()
for better Windows compatibility. (#1, #2)
Fix some typos in the developer guidelines vignette. (#3, #4)
Add loo_predict()
, loo_linpred()
, and loo_predictive_interval()
generics in
preparation for adding methods to the rstanarm package. (#5)
Changes to rstan_package_skeleton
:
Add comment in Read-and-delete-me
about importing all of Rcpp and methods packages.
Include methods in Depends
field of DESCRIPTION
file.
Also download rstanarm's Makevars.win
file.