Learn R Programming

EpiNow2 (version 1.3.2)

expose_stan_fns: Expose internal package stan functions in R

Description

his function exposes internal stan functions in R from a user supplied list of target files. Allows for testing of stan functions in R and potentially user use in R code.

Usage

expose_stan_fns(files, target_dir, ...)

Arguments

files

A character vector indicating the target files

target_dir

A character string indicating the target directory for the file

...

Additional arguments passed to rstan::expose_stan_functions.

Examples

Run this code
# NOT RUN {
expose_stan_fns("rt.stan", target_dir = system.file("stan/functions", package = "EpiNow2"))

# test by updating Rt
update_Rt(rep(1, 10), log(1.2), rep(0.1, 9), rep(10, 0), numeric(0), 0)
# }

Run the code above in your browser using DataLab