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/RtmpPR7MsQ/file20906ced0654". Configure with stan_package_configure() before installing.
stan_package_model_files(path)
#> [1] "/tmp/RtmpPR7MsQ/file20906ced0654/src/stan/bernoulli.stan"