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