exit_file | R Documentation |
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
.
exit_file(msg = "") exit_if_not(...)
msg |
|
... |
A comma-separated list of conditions. |
The exit message
Other test-files:
build_install_test()
,
run_test_dir()
,
run_test_file()
,
summary.tinytests()
,
test_package()
exit_file("I'm too tired to test") exit_if_not(packageVersion("tinytest") >= "1.0.0") ## Not run: exit_if_not(requireNamespace("foo",quietly=TRUE)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.