Skip to content

Commit 12fe0f8

Browse files
authored
Prepare v0.8.0 release (#974)
* Prepare for v0.8.0 release * Cherry-pick fix for Onedrive path issues
1 parent b271b7b commit 12fe0f8

File tree

7 files changed

+61
-11
lines changed

7 files changed

+61
-11
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
^\.github$
1313
^vignettes/articles-online-only$
1414
^release-prep\.R$
15+
^\.vscode$

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: cmdstanr
22
Title: R Interface to 'CmdStan'
3-
Version: 0.7.1
4-
Date: 2024-01-09
3+
Version: 0.8.0
4+
Date: 2024-05-18
55
Authors@R:
66
c(person(given = "Jonah", family = "Gabry", role = "aut",
77
email = "[email protected]"),
@@ -36,7 +36,7 @@ RoxygenNote: 7.3.1
3636
Roxygen: list(markdown = TRUE, r6 = FALSE)
3737
SystemRequirements: CmdStan (https://mc-stan.org/users/interfaces/cmdstan)
3838
Depends:
39-
R (>= 4.0.0)
39+
R (>= 3.5.0)
4040
Imports:
4141
checkmate,
4242
data.table,

NEWS.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,46 @@
1-
# cmdstanr 0.7.0.9000
1+
# cmdstanr 0.8.0.9000
22

33
Items for next release go here
44

5+
# cmdstanr 0.8.0
6+
7+
## Major new features
8+
9+
* Add functionality for passing `CmdStanFit` objects as initial values by @SteveBronder in #937
10+
11+
## Other improvements
12+
13+
* Add compatibility with CmdStan 2.35 by @andrjohns in #972
14+
* Add `show_messages` and `show_exceptions` arguments to all methods for controlling output by @andrjohns in #897
15+
* Drop RcppEigen dependency, implement basic Eigen -> C++ interop by @andrjohns in #899
16+
* Add compatibility with CmdStan 2.34 by @andrjohns in #905 #910
17+
* Add a format argument to the `unconstrain_draws()` method to specify draws format of return by @andrjohns in #886
18+
* Align `cmdstanr` EBFMI diagnostic threshold with CmdStan by @andrjohns in #892
19+
* Add global option `cmdstanr_print_line_numbers` to add line number to model printing by @sbfnk in #967
20+
* Add new CmdStan arguments `save_metric` and `save_cmdstan_config` by @venpopov in #932
21+
* Add documentation for CmdStanR global options by @jgabry in #951
22+
* Add documentation for how to obtain structured output similar to `rstan::extract()` using a combination of `cmdstanr` and `posterior` by @jgabry in #955
23+
* Added coercion generics for CmdStanFit objects by @gowerc in #943
24+
* `psis_resample` and `calculate_lp` arguments added to Pathfinder method by @SteveBronder in #903
25+
* Documentation and tests for LOO method updated by @jgabry in #923
26+
* Global option `cmdstanr_warn_inits` added to disable warnings about partially specified initial values by @jgabry in #913
27+
* Updates to MCMC `output_dir` documentation by @jgabry in #929
28+
29+
## Bugfixes
30+
31+
* Fix broken link in OpenCL documentation by @eipi10 in #908
32+
* Fix a minor typo in the README by @jgabry in #911
33+
* Make exported RNG functions respect changes to R's seed by @andrjohns in #973
34+
* Optimisations for model methods functions by @andrjohns in #960
35+
* Bugfix for passing function for initial values with Pathfinder method and default `num_paths` by @andrjohns in #964
36+
* Continue with compilation if `compile_stanalone=TRUE` but no functions are found by @jgabry in #956
37+
* Update tests and CI for compatibility with MacOS ARM64 by @andrjohns in #958
38+
* Fix handling of `inv_metric` argument with only 1 parameter by @venpopov in #935
39+
* Fixes for compatibility with RTools44 by @andrjohns in #952 #959
40+
541
# cmdstanr 0.7.0
642

7-
## Major new features
43+
## Major new features
844

945
* New `laplace` method by @jgabry in #800
1046
* New `pathfinder` method by @SteveBronder in #848
@@ -47,7 +83,7 @@ Items for next release go here
4783
### Major new features
4884

4985
* New `expose_functions()` method to expose Stan functions to R by @andrjohns in #702. See `?expose_functions`.
50-
* New methods for accessing log_prob, grad_log_prob, hessian, un/constrain variables by @andrjohns in #701. See `?init_model_methods`.
86+
* New methods for accessing log_prob, grad_log_prob, hessian, un/constrain variables by @andrjohns in #701. See `?init_model_methods`.
5187

5288
### Other changes
5389

R/model.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ cmdstan_model <- function(stan_file = NULL, exe_file = NULL, compile = TRUE, ...
212212
#' |**Method**|**Description**|
213213
#' |:----------|:---------------|
214214
#' [`$sample()`][model-method-sample] | Run CmdStan's `"sample"` method, return [`CmdStanMCMC`] object. |
215-
#' [`$sample_mpi()`][model-method-sample_mpi] | Run CmdStan's `"sample"` method with [MPI](https://mc-stan.org/math/mpi.html), return [`CmdStanMCMC`] object. |
215+
#' [`$sample_mpi()`][model-method-sample_mpi] | Run CmdStan's `"sample"` method with [MPI](https://mc-stan.org/math/md_doxygen_2parallelism__support_2mpi__parallelism.html), return [`CmdStanMCMC`] object. |
216216
#' [`$optimize()`][model-method-optimize] | Run CmdStan's `"optimize"` method, return [`CmdStanMLE`] object. |
217217
#' [`$variational()`][model-method-variational] | Run CmdStan's `"variational"` method, return [`CmdStanVB`] object. |
218218
#' [`$pathfinder()`][model-method-pathfinder] | Run CmdStan's `"pathfinder"` method, return [`CmdStanPathfinder`] object. |

R/path.R

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ cmdstan_default_install_path <- function(old = FALSE, wsl = FALSE) {
115115
file.path(paste0(wsl_dir_prefix(wsl = TRUE), wsl_home_dir()), ".cmdstan")
116116
} else {
117117
if (old) {
118-
file.path(Sys.getenv("HOME"), ".cmdstanr")
118+
file.path(.home_path(), ".cmdstanr")
119119
} else {
120-
file.path(Sys.getenv("HOME"), ".cmdstan")
120+
file.path(.home_path(), ".cmdstan")
121121
}
122122
}
123123
}
@@ -240,3 +240,16 @@ fake_cmdstan_version <- function(version) {
240240
reset_cmdstan_version <- function() {
241241
.cmdstanr$VERSION <- read_cmdstan_version(cmdstan_path())
242242
}
243+
244+
.home_path <- function() {
245+
home <- Sys.getenv("HOME")
246+
if (os_is_windows()) {
247+
userprofile <- Sys.getenv("USERPROFILE")
248+
h_drivepath <- file.path(Sys.getenv("HOMEDRIVE"), Sys.getenv("HOMEPATH"))
249+
win_home <- ifelse(userprofile == "", h_drivepath, userprofile)
250+
if (win_home != "") {
251+
home <- win_home
252+
}
253+
}
254+
home
255+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ releases.
2727
* Modularity: CmdStanR runs Stan's algorithms and lets downstream modules do the
2828
analysis.
2929

30-
* Flexible [BSD-3 license](https://opensource.org/license/bsd-3-clause/).
30+
* Flexible [BSD-3 license](https://opensource.org/license/bsd-3-clause).
3131

3232

3333
### Installation

man/CmdStanModel.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)