Extract the run configuration from a fit, data list, or config object
Source:R/0-save_config.R
run_config.RdReturns the model_config() structure plus the estimation controls and
fit_control() bundle as a single Rceattle_run_config. Accepts a fitted
Rceattle object, a data list holding $model_config, an
Rceattle_run_config, or an Rceattle_model_config. Estimation controls and
fit_control supplied via ... override any found on the object.
Examples
# Coerce a model_config() into a full run configuration, overriding the
# estimation controls. A fitted model or a data list works the same way.
rc <- run_config(model_config(msmMode = 1), estimateMode = "Hindcast")
rc$estimateMode
#> [1] "Hindcast"
# Optimizer and uncertainty settings belong inside fit_control(), not here;
# an unrecognized field is an error rather than a silent no-op.
rc <- run_config(rc, fit_control = fit_control(getsd = FALSE))