shg_apply_config: Apply a sparse or complete configuration (defaults first,...

View source: R/shg_config.R

shg_apply_configR Documentation

Apply a sparse or complete configuration (defaults first, then overlay)

Description

Resets the instance with shg_reset_defaults, then applies config. When smok_params_source and mort_params_source are set, derived table paths are stripped and parameters are restored via shg_load_params (same idea as shg_load_config). Otherwise settings are applied with shg$useConfig() only; explicit input_data_folder / per-table filenames in config are preserved.

Usage

shg_apply_config(shg, config = list())

Arguments

shg

An SHGInterface instance.

config

Named list (may be empty).

Value

shg, invisibly.

See Also

shg_reset_defaults, shg_load_config


SmokingHistoryGenerator documentation built on June 13, 2026, 1:08 a.m.