Round-trips a full run configuration, the model_config() structure plus
the estimation controls and fit_control() bundle, to a
git-diffable YAML file, with each field's documentation emitted as a comment
and a spec-tree + provenance header. Only fields that differ from their
defaults are written, so two configurations diff to just their real
differences. The parameter values (inits/map/bounds) are NOT stored;
pair the config with a saved fit for those.
Arguments
- x
A fitted Rceattle object, a data list holding
$model_config, anRceattle_run_config, or anRceattle_model_config.- file
Output path for the
.yamlfile.- ...
Estimation controls /
fit_controlto record (passed torun_config()).
Examples
cfg <- model_config(msmMode = 1, initMode = "OffsetEquilibrium")
f <- file.path(tempdir(), "run.yaml")
save_config(cfg, f)
identical(load_config(f)$model_config$msmMode, 1)
#> [1] TRUE