% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{load_config}
\alias{load_config}
\title{Load and merge dataset configuration}
\usage{
load_config(dataset_name, config_dir)
}
\arguments{
\item{dataset_name}{Character. Dataset name; must match
\code{<dataset_name>.yml} in \code{config_dir}.}

\item{config_dir}{Character. Path to the directory containing both YAML
files.}
}
\value{
A named list representing the merged configuration.
}
\description{
Reads the global \code{dqcheckr.yml} and the dataset-specific YAML, merging
\code{rule_overrides} from the dataset config on top of \code{default_rules}
from the global config.
}
\examples{
cfg_dir <- system.file("demonstrations/config", package = "dqcheckr")
cfg <- load_config("starwars_csv", config_dir = cfg_dir)
cfg$format

}
