What problem does it solve?
Validate function inputs in R using a standalone file of check_* functions. Use when writing exported R functions that need input validation, reviewing existing validation code, or when creating new input validation helpers.
Core Features & Use Cases
- Scalars (single values) with check_string, check_name, check_number_whole, check_number_decimal, and check_bool to enforce argument types.
- Vectors and data structures with check_character, check_data_frame, and related validators to ensure proper shapes and content.
- Optional/null handling with allow_null and advice on validating at function entry points to promote robust, predictable code.
- Use cases include building reliable package APIs, validating user inputs in exported functions, and documenting clear error messages for failed validations.
Quick Start
Add an entry-point input validation using check_* helpers (e.g., check_string, check_number_whole) at the start of your function to enforce valid arguments.