View source: R/quit_on_failure.R
handle_error | R Documentation |
Evaluates the given expression and then runs the on_success
, on_error
, or on_warning
expressions depending on the result of the initial evaluation.
handle_error(
expr,
on_success = {
},
on_error = {
},
on_warning = {
},
finally = {
}
)
expr |
Expression to evaluate |
on_success |
Expression to evaluate if |
on_error |
Expression to evaluate if |
on_warning |
Expression to evaluate if |
finally |
Expression to evaluate after |
Invisible result of expr
if it succeeds, otherwise the error or warning object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.