Skip to contents

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 keyslist("ai.provider" = "anthropic", "study.research_focus" = "x")

  • Nested named listslist(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 drop study$research_focus and 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, empty list(), 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".

Value

A validated ThematicConfig S3 object