tar_stan_example_file: Write an example Stan model file.

View source: R/tar_stan_example_file.R

tar_stan_example_fileR Documentation

Write an example Stan model file.

Description

Overwrites the file at path with a built-in example Stan model file.

Usage

tar_stan_example_file(path = tempfile(pattern = "", fileext = ".stan"))

Arguments

path

Character of length 1, file path to write the model file.

Value

NULL (invisibly).

See Also

Other examples: tar_stan_example_data()

Examples

path <- tempfile(pattern = "", fileext = ".stan")
tar_stan_example_file(path = path)
writeLines(readLines(path))

ropensci/stantargets documentation built on Feb. 8, 2025, 10:34 p.m.