Description Usage Arguments Examples
If the expression evaluates to false then the execution stops and the given message is printed.
1 | assert(expr, msg)
|
expr |
The expression to evaluate. |
msg |
The error message. |
1 2 3 4 | ## Not run:
assert(1 == 2, '1 is not equal to 2')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.