R/assertions.R
assert_valid_type.Rd
Check variable is of correct type
assert_valid_type(x, types, label = deparse(substitute(x)))
Object to check the type.
(character) possible types to check.
character
(string) label.
string
invisible NULL or an error message if the criteria are not fulfilled.
NULL