write_stan_tempfile: Write Stan code to a temporary file

View source: R/example.R

write_stan_tempfileR Documentation

Write Stan code to a temporary file

Description

This function is deprecated. Please use write_stan_file() instead.

Usage

write_stan_tempfile(code, dir = tempdir())

Arguments

code

(character vector) The Stan code to write to the file. This can be a character vector of length one (a string) containing the entire Stan program or a character vector with each element containing one line of the Stan program.

dir

(string) An optional path to the directory where the file will be written. If omitted, a global option cmdstanr_write_stan_file_dir is used. If the global options is not set, temporary directory is used.


stan-dev/cmdstanr documentation built on Aug. 13, 2024, 5:13 p.m.