run_check | R Documentation |
A check is usually a function that takes one argument and returns a pass or fail value. There are a few types which are recognized as pass or fail.
logical values TRUE
and FALSE
which are recognized as pass and fail,
respectively
chex::PASS
or the result of calling PASS()
with a reason
likewise for chex::FAIL
A result object created by result()
run_check(check, x)
check |
a object used to check the value of |
x |
an object to check |
In addition to functions, checks can also be one of the following:
logical values, which get converted to pass or fail values directly
formulas, which get converted into check functions using
rlang::as_function()
custom R objects with a method for run_check
which returns
one of the valid pass/fail values mentioned above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.