% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{load_inputs}
\alias{load_inputs}
\title{Load domain input data files}
\usage{
load_inputs(cfg)
}
\arguments{
\item{cfg}{A named list of paths from \code{project_config.R}.
Must contain \code{cfg$inputs}.}
}
\value{
A named list of data frames, one per domain file found.
}
\description{
Reads every \code{.csv} and (optionally) \code{.sas7bdat} file from the
\code{inputs/} folder into a named list. The name of each element is the
lowercase filename without extension (e.g. \code{AE.csv} becomes
\code{domains$ae}). Drop a new domain file into \code{inputs/} and it is
picked up automatically on the next run - no code change required.
}
\examples{
\donttest{
# Create a temporary inputs folder with a sample CSV
tmp_inp <- tempdir()
write.csv(
  data.frame(USUBJID = "SUBJ-001", AETERM = "RASH"),
  file.path(tmp_inp, "AE.csv"), row.names = FALSE
)
cfg     <- list(inputs = tmp_inp)
domains <- load_inputs(cfg)
# domains$ae contains the loaded Adverse Events data
}
}
