Skip to content

Commit

Permalink
Relax requirement (now minimum version 0.5.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Aug 16, 2023
1 parent 5b3f88c commit f36429e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 39 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Description: Similar to 'rstantools' for 'rstan',
and setting environment variables.
Packages 'rstantools', 'cmdstanr', 'stannis', and
'stanapi' are similar Stan clients with different objectives.
Version: 0.0.3.9000
Version: 0.0.4
License: MIT + file LICENSE
URL: https://wlandau.github.io/instantiate/,
https://github.com/wlandau/instantiate
Expand All @@ -40,7 +40,7 @@ Imports:
rlang,
utils
Suggests:
cmdstanr (>= 0.6.0),
cmdstanr (>= 0.5.2),
knitr (>= 1.30),
markdown (>= 1.1),
rmarkdown (>= 2.4),
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# instantiate 0.0.3.9000 (development)

# instantiate 0.0.4

* Relax `cmdstanr` requirement (now minimum version 0.5.2).

# instantiate 0.0.3

Expand Down
31 changes: 9 additions & 22 deletions R/stan_package_compile.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@
#' to model control compilation.
#' @param force_recompile Argument to `cmdstanr::cmdstan_model()`
#' to model control compilation.
#' @param compile_model_methods Argument to `cmdstanr::cmdstan_model()`
#' to model control compilation.
#' @param compile_hessian_method Argument to `cmdstanr::cmdstan_model()`
#' to model control compilation.
#' @param compile_standalone Argument to `cmdstanr::cmdstan_model()`
#' to model control compilation.
#' @param threads Argument to `cmdstanr::cmdstan_model()`
#' to model control compilation.
#' @param ... Other named arguments to `cmdstanr::cmdstan_model()`.
#' @examples
#' if (identical(Sys.getenv("INSTANTIATE_EXAMPLES"), "true")) {
#' path <- tempfile()
Expand All @@ -57,10 +52,8 @@ stan_package_compile <- function(
cpp_options = list(),
stanc_options = list(),
force_recompile = getOption("cmdstanr_force_recompile", default = FALSE),
compile_model_methods = FALSE,
compile_hessian_method = FALSE,
compile_standalone = FALSE,
threads = FALSE
threads = FALSE,
...
) {
stan_assert_cmdstanr()
# Not possible to test in automated tests in one coverage run.
Expand Down Expand Up @@ -101,10 +94,8 @@ stan_package_compile <- function(
cpp_options = cpp_options,
stanc_options = stanc_options,
force_recompile = force_recompile,
compile_model_methods = compile_model_methods,
compile_hessian_method = compile_hessian_method,
compile_standalone = compile_standalone,
threads = threads
threads = threads,
...
)
invisible()
}
Expand All @@ -119,10 +110,8 @@ stan_compile_model <- function(
cpp_options,
stanc_options,
force_recompile,
compile_model_methods,
compile_hessian_method,
compile_standalone,
threads
threads,
...
) {
if (verbose) {
old <- getOption("cmdstanr_verbose")
Expand All @@ -139,10 +128,8 @@ stan_compile_model <- function(
cpp_options = cpp_options,
stanc_options = stanc_options,
force_recompile = force_recompile,
compile_model_methods = compile_model_methods,
compile_hessian_method = compile_hessian_method,
compile_standalone = compile_standalone,
threads = threads
threads = threads,
...
)
invisible()
}
17 changes: 4 additions & 13 deletions man/stan_package_compile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f36429e

Please sign in to comment.