View source: R/pcd-stan-tools.R
pcd_load_stan_functions | R Documentation |
Load Stan functions as a string
pcd_load_stan_functions(
functions = NULL,
stan_path = primarycensored::pcd_stan_path(),
wrap_in_block = FALSE,
write_to_file = FALSE,
output_file = "pcd_functions.stan"
)
functions |
Character vector of function names to load. Defaults to all functions. |
stan_path |
Character string, the path to the Stan code. Defaults to the path to the Stan code in the primarycensored package. |
wrap_in_block |
Logical, whether to wrap the functions in a
|
write_to_file |
Logical, whether to write the output to a file. Default is FALSE. |
output_file |
Character string, the path to write the output file if write_to_file is TRUE. Defaults to "pcd_functions.stan". |
A character string containing the requested Stan functions
Tools for working with package Stan functions
pcd_stan_dist_id()
,
pcd_stan_files()
,
pcd_stan_functions()
,
pcd_stan_path()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.