% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checks_custom.R
\name{run_custom_checks}
\alias{run_custom_checks}
\title{Run organisation-specific custom checks}
\usage{
run_custom_checks(df, config)
}
\arguments{
\item{df}{A data frame. The current delivery.}

\item{config}{Named list. Merged configuration as returned by
\code{\link{load_config}}.}
}
\value{
A list of \code{\link{dq_result}} objects (may be empty).
}
\description{
Sources the R file specified by \code{config$custom_checks_file}, which must
define a function \code{custom_checks(df)} returning a list of
\code{\link{dq_result}} objects. Returns an empty list if
\code{custom_checks_file} is not set in the config.
}
\examples{
cfg_dir <- system.file("demonstrations/config", package = "dqcheckr")
cfg     <- load_config("starwars_csv", config_dir = cfg_dir)
path    <- system.file("demonstrations/data/starwars.csv", package = "dqcheckr")
df      <- read_dataset(path, cfg)
results <- run_custom_checks(df, cfg)

}
