View source: R/pcd-stan-tools.R
| pcd_stan_function_deps | R Documentation |
Returns all Stan functions that the specified function depends on, in topological order (dependencies before the functions that use them).
pcd_stan_function_deps(
function_name,
stan_path = primarycensored::pcd_stan_path()
)
function_name |
Character string, the name of the Stan function. |
stan_path |
Character string specifying the path to the directory containing Stan files. Defaults to the Stan path of the primarycensored package. |
A character vector of function names that the specified function depends on, ordered so that dependencies come before functions that use them. The requested function itself is included as the last element.
Tools for working with package Stan functions
pcd_load_stan_functions(),
pcd_stan_dist_id(),
pcd_stan_files(),
pcd_stan_functions(),
pcd_stan_path()
# See what primarycensored_lpmf depends on
pcd_stan_function_deps("primarycensored_lpmf")
# A function with no dependencies
pcd_stan_function_deps("expgrowth_pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.