stan_package_clean {instantiate} | R Documentation |
Remove one or more compiled Stan models in an R package.
Description
Remove one or more compiled Stan models from the file system of an R package.
Usage
stan_package_clean(models = instantiate::stan_package_model_files())
Arguments
models |
Character vector of file paths to Stan model source code
files. Defaults to the Stan files in |
Value
NULL
(invisibly). Called for its side effects.
See Also
Other packages:
stan_cmdstan_path()
,
stan_package_compile()
,
stan_package_configure()
,
stan_package_model_files()
Examples
if (identical(Sys.getenv("INSTANTIATE_EXAMPLES"), "true")) {
path <- tempfile()
stan_package_create(path = path)
stan_package_configure(path = path)
models <- stan_package_model_files(path)
list.files(file.path(path, "inst", "stan"))
stan_package_compile(models)
list.files(file.path(path, "inst", "stan"))
# Clean up the compiled Stan model files:
stan_package_clean(models = models)
list.files(file.path(path, "inst", "stan"))
}
[Package instantiate version 0.2.2 Index]