% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/error-utils.r
\name{check_input}
\alias{check_input}
\title{Validate input with type/length constraints}
\usage{
check_input(
  x,
  type = NULL,
  length = NULL,
  min_length = NULL,
  max_length = NULL,
  allow_null = FALSE,
  arg_name = "input"
)
}
\arguments{
\item{x}{Object to check}

\item{type}{Expected type (e.g., \code{"numeric"}, \code{"character"}, or class name)}

\item{length}{Expected length}

\item{min_length}{Minimum length}

\item{max_length}{Maximum length}

\item{allow_null}{Whether \code{NULL} is allowed}

\item{arg_name}{Argument name for messages}
}
\value{
Invisible \code{TRUE} on success
}
\description{
Enhanced input validation supporting base types and class checks.
}
\seealso{
Other validate-utils: 
\code{\link{check_directory}()},
\code{\link{check_file}()},
\code{\link{check_packages}()},
\code{\link{check_range}()}
}
\concept{validate-utils}
