Skip to content

Reads a YAML file and assigns each top-level key as a variable in the target environment (e.g., `db`, `threshold_tf_expr`, etc.). Also runs standard config initialization helpers when available.

Usage

load_config(path, env = .craftgrn_state)

Arguments

path

Character path to a YAML file.

env

Environment to populate. Defaults to the internal CraftGRN config state.

Value

(Invisibly) the parsed list.

Examples

if (FALSE) { # \dontrun{
load_config("craftgrn_grn.yaml")
# Config values are now available to CraftGRN helper functions.
} # }