stopif | R Documentation |
A equivalent to stopifnot
: if cond
is TRUE
then a error is thrown.
stopif(cond, txt)
cond |
logical: condition to test |
txt |
character: error message |
nothing
if (interactive()) stopif(1+1==2, "1+1 can not be 2, this is fake science!")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.