| shg_run | R Documentation |
shg_run() and SHGInterface$runSim() call the same implementation.
Validates required keys and calls runSimFromFixedValues.
If repeat, individuals, and N are all omitted,
repeat defaults to 1000L.
If config is a single string, it is treated as a path and read with
read_yaml (use after shg_load_config with the
returned list is preferred).
shg_run(shg, config, attach_run_info = TRUE)
shg |
An |
config |
Named list from |
attach_run_info |
If |
If attach_run_info is FALSE, the data.frame from
runSimFromFixedValues. If TRUE, a list with four components:
Simulation data.frame (see runSimFromFixedValues).
Intent list passed into the run (cohort scalars,
smok_params_source, mort_params_source, mort_params_type,
engine options); for runSim/shg_run, the config list or parsed YAML.
Effective post-run settings from getReproConfig
(resolved segments/threads, RNG, paths, bundle provenance, cohort metadata).
Execution metadata (UTC time, host, R and package/engine versions;
built by internal .shg_build_run_info()).
shg_load_config, shg_save_config
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.