Skip to content

Releases: stan-dev/cmdstanr

v0.9.0 Release

30 Mar 07:53
da99e2b
Compare
Choose a tag to compare

General Improvements/Changes

  • Added compatibility for RTools45 (#1066)
  • cmdstanr will now use RTools with no additional toolchain updates needed on Windows (CmdStan 2.35+ only; #1065, #1054)
  • Improve error messages when calling sampler_diagnostics() with fixed_param=TRUE
  • Improve numerical stability in calculation of effective sample size during loo method (#1057)
  • Improve numerical stablity with very small log-ratios in calculation of effective sample size during loo method (#1015)
  • Add warning if input data/inits have been coerced to ints (#994)

Bugfixes

  • Don't require fixed_param for models with zero parameters (only GQs) for CmdStan >= 2.36 (#1046)
  • Improve detection/handling of make (#1036)
  • Fix saving of model objects to network drive (#1038, thanks to @bschneidr)
  • Update usage of untar to fix installation errors (#1034)
  • Respect compilation flags in make/local when exposing functions or model methods (#1003)
  • Fix passing of include paths to CmdStan (#1000)
  • Fix passing of factor data to CmdStan (#999)
  • Fix extraction and passing of array data/parameters as model inits (#993)

Documentation Updates

  • Clarifications to usage of optimize and loo methods (#1060)
  • Add documentation for faster model saving with large models (#1042)
  • Remove mentions of rstan::read_stan_csv due to incompatibility with newer CmdStan outputs (#1018)
  • Document global option cmdstanr_print_line_numbers for printing line numbers (#1017)
  • Change usage of 'chapter' to 'section' in documentation (#1014)
  • Remove examples of updating removed array syntax as functionality no longer supported in CmdStan (#1008)
  • Change usages of 'sampling statement' -> 'distribution statement' (#987)

New Contributors

Full Changelog: v0.8.1...v0.9.0

v0.8.1 - Bugfix Release

06 Jun 20:42
02259ef
Compare
Choose a tag to compare

What's Changed

  • Fix linking error when exposing SUNDIALS/KINSOL functions or model methods by @andrjohns in #977
  • Add CMDSTANR_USE_RTOOLS envvar to force use of stock RTools by @andrjohns in #980
  • Fix spurious cmdstan config errors by @andrjohns in #981
  • Fix incorrect sizing for unconstrain_draws() in some cases by @andrjohns in #983
  • fix process_init_approx by @avehtari in #984
  • Automatically init model methods, add inc_warmup argument to unconstrain_draws() method by @andrjohns in #985
  • Update repo links to use r-universe by @andrjohns in #988
  • Bugfixes - Fix Windows path change, aarch64 rtools, 2.35 seed changes by @andrjohns in #990
  • Prepare v0.8.1 bugfix release by @andrjohns in #989

Full Changelog: v0.8.0...v0.8.1

v0.8.0

18 May 13:24
12fe0f8
Compare
Choose a tag to compare

Major new features

  • Add functionality for passing CmdStanFit objects as initial values by @SteveBronder in #937

Other improvements

  • Add compatibility with CmdStan 2.35 by @andrjohns in #972
  • Add show_messages and show_exceptions arguments to all methods for controlling output by @andrjohns in #897
  • Drop RcppEigen dependency, implement basic Eigen -> C++ interop by @andrjohns in #899
  • Add compatibility with CmdStan 2.34 by @andrjohns in #905 #910
  • Add a format argument to the unconstrain_draws() method to specify draws format of return by @andrjohns in #886
  • Align cmdstanr EBFMI diagnostic threshold with CmdStan by @andrjohns in #892
  • Add global option cmdstanr_print_line_numbers to add line number to model printing by @sbfnk in #967
  • Add new CmdStan arguments save_metric and save_cmdstan_config by @venpopov in #932
  • Add documentation for CmdStanR global options by @jgabry in #951
  • Add documentation for how to obtain structured output similar to rstan::extract() using a combination of cmdstanr and posterior by @jgabry in #955
  • Added coercion generics for CmdStanFit objects by @gowerc in #943
  • psis_resample and calculate_lp arguments added to Pathfinder method by @SteveBronder in #903
  • Documentation and tests for LOO method updated by @jgabry in #923
  • Global option cmdstanr_warn_inits added to disable warnings about partially specified initial values by @jgabry in #913
  • Updates to MCMC output_dir documentation by @jgabry in #929

What's Changed

Bugfixes

  • Fix broken link in OpenCL documentation by @eipi10 in #908
  • Fix a minor typo in the README by @jgabry in #911
  • Make exported RNG functions respect changes to R's seed by @andrjohns in #973
  • Optimisations for model methods functions by @andrjohns in #960
  • Bugfix for passing function for initial values with Pathfinder method and default num_paths by @andrjohns in #964
  • Continue with compilation if compile_stanalone=TRUE but no functions are found by @jgabry in #956
  • Update tests and CI for compatibility with MacOS ARM64 by @andrjohns in #958
  • Fix handling of inv_metric argument with only 1 parameter by @venpopov in #935
  • Fixes for compatibility with RTools44 by @andrjohns in #952 #959

New Contributors

Full Changelog: v0.7.1...v0.8.0

cmdstanr v0.7.1

09 Jan 09:29
2bec769
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.7.1

cmdstanr v0.7.0

13 Dec 20:23
7e10703
Compare
Choose a tag to compare

Major changes

Other improvements and bug fixes

New Contributors

Full Changelog: v0.6.1...v0.7.0

cmdstanr v0.6.1

25 Aug 15:44
a13c798
Compare
Choose a tag to compare

What's Changed

  • Store return codes instead of always querying exit status by @jgabry in #798
  • enable jacobian argument for optimization by @jgabry in #799
  • Fix init_model_methods for models with no data by @andrjohns in #801
  • Document a CmdStan-focused way to pre-compile Stan models in R packages by @wlandau in #809
  • Describe how to efficiently save model fit objects by @wlandau in #816
  • fix errors in doc for new methods by @jgabry in #823
  • Give informative error when exposing stan functions with precompiled model by @andrjohns in #831
  • Bugfixes in .stanfunctions, hessian model method, and exposing RNG functions by @andrjohns in #811
  • Fix variable_skeleton() with containers by @andrjohns in #832
  • Improve handling of user header by @martinmodrak in #818
  • change duplicate stdout_file to stderr_file by @jgabry in #834

Full Changelog: v0.6.0...v0.6.1

cmdstanr v0.6.0

26 Jul 20:49
cbb570a
Compare
Choose a tag to compare

Major new features

  • New methods for accessing log_prob, grad_log_prob, hessian, un/constrain variables by @andrjohns in #701. See ?init_model_methods.
  • New expose_functions() method to expose Stan functions to R by @andrjohns in #702. See ?expose_functions.

Other changes

New Contributors

Full Changelog: v0.5.3...v0.6.0

cmdstanr v0.5.3

17 Jul 18:41
22b391e
Compare
Choose a tag to compare
  • On Windows, users can now install and use CmdStan with WSL (Windows Subsystem for Linux). Set wsl=TRUE in install_cmdstan() to install CmdStan for use with WSL. This can offer significant speedups compared to native Windows execution. (#677, credit goes to @andrjohns)

  • In cmdstan_default_path() we now ignore directories inside ~/.cmdstan that don't start with "cmdstan-". (#651)

  • Fixed Windows issues related to not locating grep.exe. (#661, #663, credit goes to @weshinsley)

  • Fixed a bug in diagnostic checks when ebfmi is NaN.

  • Fixed a bug that caused issues when using ~ or . in paths supplied to the cmdstanr_write_stan_file_dir global option.

  • Fixed a bug that caused the $time() method to fail when some of the chains failed to finish successfully.

cmdstanr v0.5.2

28 Apr 21:48
Compare
Choose a tag to compare
  • Refactored toolchain installation and checks for R 4.x on Windows and added support
    for Rtools42. (#645)

  • Expanded the use of CMDSTAN environment variable to point to CmdStan installation
    or directory containing CmdStan installations. (#643)

  • New vignette on how to handle deprecations using the $format() method. (#644)

cmdstanr v0.5.1

07 Apr 21:01
Compare
Choose a tag to compare
  • Temporarily disable format="draws_rvars" in the $draws() method due to a
    bug. Until this is fixed users can make use of posterior::as_draws_rvars() to
    convert draws from CmdStanR to the draws_rvars format. (#640)