% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing_helper_functions.R
\name{check_file_is_valid}
\alias{check_file_is_valid}
\title{check_file_is_valid}
\usage{
check_file_is_valid(data, expected_names, tool_name)
}
\arguments{
\item{data}{A data frame read into R.}

\item{expected_names}{A character vector of expected column names.}

\item{tool_name}{A short string identifying the originating software
(e.g., "PEAKS", "PD",etc).}
}
\value{
Raises an error (`stop`) with an informative message if required
columns are missing; otherwise returns `invisible(NULL)`.
}
\description{
Validate that an input data frame contains all expected columns.
}
\keyword{internal}
