Assert that an object is a numeric.
assertNumeric(
x,
integerish = FALSE,
min = -Inf,
max = Inf,
length = NULL,
na = FALSE,
null = FALSE,
unique = FALSE,
named = FALSE,
call = parent.frame(),
msg = NULL
)
Variable to check.
Whether it has to be an integer
Minimum value that the object can be.
Maximum value that the object can be.
Required length. If NULL
length is not checked.
Whether it can contain NA values.
Whether it can be NULL.
Whether it has to contain unique elements.
Whether it has to be named.
Call argument that will be passed to cli
error message.
Custom error message.