View source: R/check-input-helpers.R
check_try | R Documentation |
Tries to execute an expression. Internally, this is used to
see whether assertions fail when checking inputs (i.e. to convert an
assert_*()
statement into a check). If the expression fails, the error
message is returned. If the expression succeeds, TRUE
is returned.
check_try(expr)
expr |
an expression to be evaluated |
Returns TRUE if the check was successful and a string with an error message otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.