shg_write_config_yaml: Write a configuration list to YAML

View source: R/shg_config.R

shg_write_config_yamlR Documentation

Write a configuration list to YAML

Description

Strips audit-only keys when present, then drops redundant input paths when smok_params_source and mort_params_source are set (same idea as portable save). Sparse lists serialize as-is (minimal keys only).

Usage

shg_write_config_yaml(config, path)

Arguments

config

Named list (original_config, repro_config, or any intent list).

path

Output file path.

Details

Parameter provenance and table paths are grouped under a params mapping when present (smok_params_source, mort_params_source, mort_params_type, and/or input_data_folder with per-table filenames). shg_load_config and shg_apply_config accept nested or flat keys.

For full portable fixed-cohort bundles, config should include both parameter sources and complete repeat, race, sex, cohort_year (see shg_save_config).

Value

path, invisibly.


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