From f36429e9d0887ffbfa0d5d36ac5369254e1ddc1a Mon Sep 17 00:00:00 2001 From: wlandau-lilly Date: Wed, 16 Aug 2023 14:50:33 -0400 Subject: [PATCH] Relax requirement (now minimum version 0.5.2) --- DESCRIPTION | 4 ++-- NEWS.md | 4 ++-- R/stan_package_compile.R | 31 +++++++++---------------------- man/stan_package_compile.Rd | 17 ++++------------- 4 files changed, 17 insertions(+), 39 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4b9aa88..71dea82 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 @@ -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), diff --git a/NEWS.md b/NEWS.md index 077bcf4..1b10063 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/stan_package_compile.R b/R/stan_package_compile.R index 6847e0d..e14d4e1 100644 --- a/R/stan_package_compile.R +++ b/R/stan_package_compile.R @@ -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() @@ -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. @@ -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() } @@ -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") @@ -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() } diff --git a/man/stan_package_compile.Rd b/man/stan_package_compile.Rd index 78e284a..3c9709f 100644 --- a/man/stan_package_compile.Rd +++ b/man/stan_package_compile.Rd @@ -15,10 +15,8 @@ stan_package_compile( 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, + ... ) } \arguments{ @@ -75,17 +73,10 @@ to model control compilation.} \item{force_recompile}{Argument to \code{cmdstanr::cmdstan_model()} to model control compilation.} -\item{compile_model_methods}{Argument to \code{cmdstanr::cmdstan_model()} -to model control compilation.} - -\item{compile_hessian_method}{Argument to \code{cmdstanr::cmdstan_model()} -to model control compilation.} - -\item{compile_standalone}{Argument to \code{cmdstanr::cmdstan_model()} -to model control compilation.} - \item{threads}{Argument to \code{cmdstanr::cmdstan_model()} to model control compilation.} + +\item{...}{Other named arguments to \code{cmdstanr::cmdstan_model()}.} } \value{ \code{NULL} (invisibly). Called for its side effects.