Use exit_file to exit a file with a custom message, or use
exit_if to exit if one or more conditions are met. exit_if
will create a message akin to messages created by stopifnot.
See also
Other test-files:
build_install_test(),
run_test_dir(),
run_test_file(),
summary.tinytests(),
test_package()
Examples
exit_file("I'm too tired to test")
#> [1] "I'm too tired to test"
exit_if_not(packageVersion("tinytest") >= "1.0.0")
#> NULL
if (FALSE) { # \dontrun{
exit_if_not(requireNamespace("foo",quietly=TRUE))
} # }