Description Usage Arguments Value Examples
View source: R/Error_Handling.R
If the condition is met, stop execution, and print an error message
1 |
condition |
Condition that, if met, will stop and print an error message. |
error_msg |
Message to be displayed if the stopping condition is met. |
Nothing.
1 2 | # stop_if(TRUE, "I'm an error message") # Will stop execution and print the message
# stop_if(FALSE, "I'm an error message") # Will do nothing
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.