List all the paths to the Stan model files in a package.

stan_package_model_files(path = getwd())

Arguments

path

Character of length 1, root path to start from when searching for Stan model files.

Value

Character vector of paths to Stan model files in the package.

Details

All Stan models must live in the src/stan/ directory in the package file system.

Examples

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"