| shg_load_params | R Documentation |
Downloads (or reuses locally cached copies of) separate shg-params smoking
and mortality release zips, merges them into an engine layout under the cache,
and sets input_data_folder plus relative input filenames on the
SHGInterface instance.
Each zip uses the shg-params release layout (params/ CSVs plus
metadata.yml). The simulator expects smoking/*.csv and mortality/*.csv
under one folder; this function materializes that tree from the two zips.
shg_load_params(
shg,
smoking_url = NULL,
mortality_url = NULL,
mort_params_type = c("acm", "ocm")
)
shg |
An |
smoking_url |
URL or local path to the smoking |
mortality_url |
URL or local path to the mortality |
mort_params_type |
For private GitHub-hosted zips, set |
The SHGInterface instance, invisibly.
Options shg.params.download.timeout_sec (default 600) and
shg.params.download.connect_sec (default 60) control HTTPS transfers
when httr2 is installed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.