Enhanced input validation supporting base types and class checks.
check_input(
x,
type = NULL,
length = NULL,
min_length = NULL,
max_length = NULL,
allow_null = FALSE,
arg_name = "input"
)Invisible TRUE on success
Object to check
Expected type (e.g., "numeric", "character", or class name)
Expected length
Minimum length
Maximum length
Whether NULL is allowed
Argument name for messages
Other validate-utils:
check_directory(),
check_file(),
check_packages(),
check_range()