R/stan_package_configure.R
stan_package_configure.Rd
Write configuration files in an R package which
compile all the Stan models in src/stan/
when the package installs.
stan_package_configure(path = getwd(), overwrite = FALSE)
Character of length 1, file path to the package which will
contain Stan models in src/stan/
at installation time.
Logical of length 1, whether to overwrite any existing configuration files.
NULL
(invisibly). Called for its side effects.
Writes configuration scripts configure
and configure.win
in the directory specified by the path
argument.
Other packages:
stan_cmdstan_path()
,
stan_package_clean()
,
stan_package_compile()
,
stan_package_model_files()
if (identical(Sys.getenv("INSTANTIATE_EXAMPLES"), "true")) {
path <- tempfile()
stan_package_create(path = path)
list.files(path)
stan_package_configure(path = path)
list.files(path)
}