Skip to contents

The inverse of save_config(): reads a run-config YAML file and rebuilds the model_config() structure, estimation controls, and fit_control() bundle (reconstructing linkage formulas and priors). Attach the result to a fit with fit_mod(data_list, config = load_config("run.yaml")), or read $model_config off it to attach to a data list.

Usage

load_config(file)

Arguments

file

Path to a YAML file written by save_config().

Value

An Rceattle_run_config.

Examples

f <- file.path(tempdir(), "run.yaml")
save_config(model_config(msmMode = 1, initMode = "Equilibrium"), f)

cfg <- load_config(f)
cfg$model_config$msmMode
#> [1] 1
# Apply with fit_mod(data_list, config = cfg).
unlink(f)