stan_package_create: Create example package with a built-in Stan model.

View source: R/stan_package_create.R

stan_package_createR Documentation

Create example package with a built-in Stan model.

Description

Create an example package with a Stan model inside.

Usage

stan_package_create(path = tempfile())

Arguments

path

Path to write the package. Must not already exist.

Details

After creating the package, the next step is to configure it with stan_package_configure(). After that, install it as an ordinary R package to automatically compile the models.

Value

NULL (invisibly). Called for its side effects.

Examples

if (identical(Sys.getenv("INSTANTIATE_EXAMPLES"), "true")) {
path <- tempfile()
stan_package_create(path = path)
list.files(path)
}

instantiate documentation built on Oct. 3, 2024, 1:07 a.m.