Assert that an expression is TRUE.
assertTrue(
x,
null = FALSE,
empty = TRUE,
nm = deparse1(substitute(x), backtick = TRUE),
call = parent.frame(),
msg = NULL
)Expression to check.
Whether it can be NULL.
Whether it can be empty.
Name to use in error messages. Defaults to the expression supplied
to x.
Call argument that will be passed to cli.
Custom error message.