Create the save_elements
vector for netsim_run_one_scenario
Source: R/netsim_scenarios.R
make_save_elements.Rd
Helper function to create the save_elements
character vector according to
the save_pattern
.
Arguments
- save_pattern
A character vector of what should be kept in the final
netsim
objects. It can contain the names of the elements as well as: "simple" (defautlt) to only keep "epi", "param" and "control"; "restart" to get the elements required to restart from such file; "all" to not trim the object at all.c("simple", "el.cuml")
is an example of a valid pattern to save "epi", "param", "control" and "el.cuml". Ifcontrol$raw.output
isTRUE
, this parameter has no effect and the full result is saved.