Assert that an object is a logical.
assertLogical(
x,
length = NULL,
na = FALSE,
null = FALSE,
named = FALSE,
call = parent.frame(),
msg = NULL
)
Variable to check.
Required length. If NULL
length is not checked.
Whether it can contain NA values.
Whether it can be NULL.
Whether it has to be named.
Call argument that will be passed to cli
error message.
Custom error message.