% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_helpers.R
\name{.hm_precompute_from_deps}
\alias{.hm_precompute_from_deps}
\title{One-level pre-computation of missing keys from existing raw columns}
\usage{
.hm_precompute_from_deps(data, deps, missing_keys, fn = "", verbose = FALSE)
}
\arguments{
\item{data}{data.frame to augment.}

\item{deps}{Named list of dependency definitions, each with:
\describe{
\item{needs}{character vector of prerequisite column names}
\item{describe}{short human-readable formula string}
\item{compute}{function(data) returning a numeric vector}
}}

\item{missing_keys}{character vector of key names to attempt to compute.}

\item{fn}{calling function name (for messages).}

\item{verbose}{logical.}
}
\value{
A list with \code{$data} (augmented data.frame) and
\code{$log} (character vector of per-key messages).
}
\description{
Given a dependency map (\code{deps}), for each key in \code{missing_keys}
checks whether its prerequisite columns are present in \code{data}. If yes,
the key is computed and added as a new column; otherwise an informational
message is emitted (when \code{verbose = TRUE}) indicating what to provide.
}
\keyword{internal}
