Description Usage Arguments Value
These functions are not designed to be used directly, we advise to use the
syntaxes described in ?declare
instead. check_arg
checks that arguments
satisfy an assertion, and if relevant make them into active bindings to make sure they
always satisy it. check_output
checks that the value, presumably a return
value, satisfies an assertion,
1 2 3 | check_output(.output, .assertion, ...)
check_arg(.arg, .assertion, ..., .bind = FALSE)
|
.output |
function output |
.assertion |
an assertion |
... |
additional arguments passed to assertion |
.arg |
function argument |
.bind |
whether to actively bind the argument so it cannot be modified unless it satisfies the assertion |
.output
if it satisfies the assertion, fails otherwise.
returns NULL
invisibly, called for side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.