Value
test_*
:TRUE
if it passes the test;FALSE
otherwise.assertion_*
: An invisibleTRUE
if it passes the test; an error message otherwise.
Examples
if (requireNamespace("datasets", quietly = TRUE)) {
test_data("mtcars", "datasets")
#> [1] TRUE # Expected
}
#> [1] TRUE