List all the paths to the Stan model files in a package.
stan_package_model_files(path = getwd())
Character vector of paths to Stan model files in the package.
All Stan models must live in the src/stan/
directory in the
package file system.
Other packages:
stan_cmdstan_path()
,
stan_package_clean()
,
stan_package_compile()
,
stan_package_configure()
path <- tempfile()
stan_package_create(path = path)
#> Package with an internal Stan model created at directory path "/tmp/RtmpON1qv5/file1a19462ec9a3". Configure with stan_package_configure() before installing.
stan_package_model_files(path)
#> [1] "/tmp/RtmpON1qv5/file1a19462ec9a3/src/stan/bernoulli.stan"