View source: R/utils_validation.R
| validate_param | R Documentation |
Centralized parameter validation to reduce code duplication
validate_param(
value,
arg_name,
type = "character",
min_length = 1,
max_length = Inf,
allow_na = FALSE,
choices = NULL
)
value |
The value to validate |
arg_name |
The argument name for error messages |
type |
Expected type: "character", "logical", "numeric" |
min_length |
Minimum length for vectors |
max_length |
Maximum length for vectors |
allow_na |
Whether NA values are allowed |
choices |
Valid choices for character parameters |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.