Skip to content

cmdstanr v0.4.0

Compare
Choose a tag to compare
@jgabry jgabry released this 15 Apr 19:01
· 1376 commits to master since this release

Bug fixes

  • Fixed issue with retrieving draws with models with spaces in their names. (#453)

  • Fixed bug with spaces in path to the temporary folder on Windows. (#460)

  • Fixed issue with not reporting model executable name clashing with folder name. (#461)

New features

  • New function as_cmdstan_fit() that creates CmdStanMCMC/MLE/VB objects
    directly from CmdStan CSV files. (#412)

  • read_cmdstan_csv() now also returns chain run times for MCMC sampling CSV
    files. (#414)

  • Faster CSV reading for multiple chains. (#419)

  • New $profiles() method for fitted model objects accesses profiling
    information from R if profiling used in the Stan program. Support for profiling
    Stan programs requires CmdStan >= 2.26. (#434)

  • New vignette on profiling Stan programs. (#435)

  • New vignette on running Stan on the GPU with OpenCL. OpenCL device ids can
    now also be specified at runtime. (#439)

  • New check for invalid parameter names when supplying init values. (#452, @mike-lawrence)

  • Suppressing compilation messages when not in interactive mode. (#462, @wlandau)

  • New error_on_NA argument for cmdstan_version() to optionally return NULL
    (instead of erroring) if the CmdStan path is not found (#467, @wlandau).

  • Global option cmdstanr_max_rows can be set as an alternative to specifying
    max_rows argument to the $print() method. (#470)

  • New output_basename argument for the model fitting methods. Can be used in
    conjunction with output_dir to get completely predictable output CSV file
    paths. (#471)

  • New format argument for $draws(), $sampler_diagnostics(),
    read_cmdstan_csv(), and as_cmdstan_fit(). This controls the format of the
    draws returned or stored in the object. Changing the format can improve speed
    and memory usage for large models. (#482)