Load analysis configuration from YAML file
Usage
load_config(config_path, overrides = list())Arguments
- config_path
Path to YAML config file.
- overrides
Named list of overrides applied after the YAML is parsed. Two equivalent styles are supported and may be mixed:
Dot-path keys –
list("ai.provider" = "anthropic", "study.research_focus" = "x")Nested named lists –
list(ai = list(provider = "anthropic"), study = list(research_focus = "x"))
Both styles deep-merge: sibling fields under the same parent key are preserved, not clobbered. (Previously the nested style silently replaced the entire parent block – e.g., passing
list(study = list(researcher_positionality = "..."))would dropstudy$research_focusand surface as the misleading "study.research_focus is required" validation error.)Leaves are everything that is not a non-empty named list: atomic vectors (
c("a", "b")), NULL, emptylist(), unnamed/positional lists (e.g.,custom_cleaning_rules = list(list(pattern = ...))), and data.frames. Use a positional list deliberately when you mean "replace this whole block".