Check Data Types
Usage
assert_type(x, expected, allow_empty = TRUE, allow_null = FALSE)
assert_scalar(x, expected)
assert_function(x)
Arguments
See also
Other checking methods:
assert_constant()
,
assert_dim()
,
assert_empty()
,
assert_infinite()
,
assert_length()
,
assert_lower()
,
assert_missing()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
assert_unique()