| check_input | R Documentation |
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"
)
x |
Object to check |
type |
Expected type (e.g., |
length |
Expected length |
min_length |
Minimum length |
max_length |
Maximum length |
allow_null |
Whether |
arg_name |
Argument name for messages |
Invisible TRUE on success
Other validate-utils:
check_directory(),
check_file(),
check_packages(),
check_range()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.