R/constraints.checkMaxLength.R
constraints.checkMaxLength.Rd
Specify the maximum length of a character
constraints.checkMaxLength(constraint, value)
constraint | numeric constraint, maximum character length |
---|---|
value | character to meet the constraint |
TRUE if character length is equal to or less than the constraint
#> [1] TRUEconstraints.checkMaxLength(constraint = 2, value = "hello")#> [1] FALSE