Value
test_*
:TRUE
if it passes the test;FALSE
otherwise.check_*
:TRUE
if it passes the test; a string with a message otherwise.assertion_*
: The same input (as invisible) if it passes the test; an error message otherwise.
Examples
if (interactive()) {
test_interactive()
#> [1] TRUE # Expected
}