stan_package_configure {instantiate}R Documentation

Configure an R package with built-in Stan models.

Description

Write configuration files in an R package which compile all the Stan models in ⁠src/stan/⁠ when the package installs.

Usage

stan_package_configure(path = getwd(), overwrite = FALSE)

Arguments

path

Character of length 1, file path to the package which will contain Stan models in ⁠src/stan/⁠ at installation time.

overwrite

Logical of length 1, whether to overwrite any existing configuration files.

Details

Writes configuration scripts configure and configure.win in the directory specified by the path argument.

Value

NULL (invisibly). Called for its side effects.

See Also

Other packages: stan_cmdstan_path(), stan_package_clean(), stan_package_compile(), stan_package_model_files()

Examples

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)
}

[Package instantiate version 0.2.2 Index]