Skip to contents

Validate a single YAML config against the JSON schema

Usage

check_settings(
  yaml_path,
  schema_path = "configs/settings.schema.json",
  verbose = TRUE
)

Arguments

yaml_path

Path to YAML (e.g., "configs/psrc.yaml").

schema_path

Path to JSON schema (default "configs/settings.schema.json").

verbose

Logical; print validator output.

Value

Invisibly TRUE on success; otherwise stops with a readable error.

Examples

if (FALSE) { # \dontrun{
check_settings("configs/example.yaml")
} # }