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)

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.

Value

NULL (invisibly). Called for its side effects.

Details

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

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