Description Usage Arguments Examples
Verify a condition and stop the execution if it is not met
1 | assert(expr, error)
|
expr |
expression to check |
error |
error message to display |
1 2 3 4 | ## Not run:
assert(1 == 2, "1 is not 2!!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.