Validate field generic
validate_field.Rd
Checks the value of a field with value and apply corrections whenever necessary.
Usage
# S3 method for class 'string_field'
validate_field(x)
# S3 method for class 'select_field'
validate_field(x)
# S3 method for class 'switch_field'
validate_field(x)
# S3 method for class 'numeric_field'
validate_field(x)
# S3 method for class 'upload_field'
validate_field(x)
# S3 method for class 'filesbrowser_field'
validate_field(x)
# S3 method for class 'variable_field'
validate_field(x)
# S3 method for class 'range_field'
validate_field(x)
# S3 method for class 'list_field'
validate_field(x)
# S3 method for class 'result_field'
validate_field(x)
# S3 method for class 'keyvalue_field'
validate_field(x)
validate_field(x)
# S3 method for class 'field'
validate_field(x)
# Default S3 method
validate_field(x)
is_valid(x)
# S3 method for class 'field'
is_valid(x)
validation_failure(..., class = character())
Arguments
- x
A Field
- ...
Message components (forwarded to
paste0()
)- class
Condition class (will be a subclass of
validation_failure
)