Skip to content

Releases: stan-dev/rstantools

rstantools v2.4.0

31 Jan 15:43
77fe508
Compare
Choose a tag to compare

What's Changed

  • update to match CRAN's patched version by @jgabry in #114
  • Include additional template imports to suppress NOTEs by @andrjohns in #115
  • Fix packages with stanfunctions under rstan 2.33+ by @andrjohns in #117

Full Changelog: v2.3.1...2.4.0

rstantools v2.3.1

30 Mar 18:18
Compare
Choose a tag to compare

Full Changelog: v2.3.0...v2.3.1

rstantools v2.3.0

10 Mar 00:34
Compare
Choose a tag to compare
  • Updated C++ standard to C++17 (#100)
  • Updated the handling of exporting standalone stan functions in packages for compatibility with the 2.26 (and beyond) versions of StanHeaders and rstan (#101)
  • Added Andrew Johnson (@andrjohns) as an author

rstantools v2.2.0

11 Apr 17:46
Compare
Choose a tag to compare
  • Updated "Step by step guide" vignette with instructions for adding new Stan
    models to an existing R package that already has Stan models. (#79, @rerickson-usgs)

  • Fixed R CMD check NOTE "configure does not appear to have a #! interpreter line". (#83)

  • Use writeLines instead of cat to fix line endings issue reported by CRAN. (#87)

  • Switch to GitHub Actions for CI. (#90, @andrjohns)

  • Deprecate automatic creation of .travis.yml file. We now recommend the use
    of GitHub Actions. (#89)

  • Ensure compatibility with future versions of RStan. (#85, #94, @andrjohns, @hsbadr)

rstantools v2.1.1

07 Jul 00:46
Compare
Choose a tag to compare
  • Compatibility with StanHeaders 2.21.0-5

rstantools v2.1.0

01 Jun 20:55
Compare
Choose a tag to compare
  • Compatibility with StanHeaders 2.21.0-3
  • Improve messaging around updating NAMESPACE file (#75, @mikekaminsky)
  • More informative error message for rstan_create_package() when directory
    already exists. (#68, @mcol)
  • Add generated C++ files to .gitignore and .Rbuildignore (#66, @mcol)
  • New generic posterior_epred() (#74)

rstantools v2.0.0

15 Sep 18:40
Compare
Choose a tag to compare
  • Added Martin Lysy as a coauthor.

  • New function rstan_create_package() (based on
    usethis::create_package()) replaces rstan_package_skeleton()
    for the purpose of starting a new package with Stan functionality.

  • Stan functionality can be added to an existing package by calling
    use_rstan() instead of starting a new package from scratch.

  • Stan folder infrastructure now puts all .stan files in inst/stan and all
    auto-generated C++ files directly in src. This last step ensures that custom
    Rcpp source code can coexist with the Stan C++ code.

  • Each time a .stan file gets added/removed/modified requires a call to
    rstan_config() in order to generate the Stan C++ code and Rcpp::loadModule()
    calls. However, setting auto_config = TRUE (the default) in
    rstan_create_package() ensures rstan_config() is called whenever the package
    is installed (including via devtools::load_all()), so no need to call it
    manually unless the user wishes to inspect the Stan C++ code for issues.

  • roxygen2 documentation is now optional, but remains the default.

  • Rather than generating Stan "system files" via cat commands, rstantools
    now stores these as template files in inst/include/sys, so the build process
    can be easily modified as improvements become apparent.

rstantools v1.5.0

17 Apr 14:46
Compare
Choose a tag to compare

rstantools 1.5.0

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

rstantools v1.3.0

02 Aug 14:06
Compare
Choose a tag to compare

rstantools v1.3.0

(Github issue/PR numbers in parentheses)

  • Add bayes_R2 generic and default method. (#8)

rstantools v1.2.1

29 Mar 20:43
Compare
Choose a tag to compare

rstantools 1.2.1

Too soon for another CRAN release, so this is a GitHub only release. The next CRAN release will be version 1.3.0.

  • Add 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)