stopif {bazar} | R Documentation |
If any of the expressions in ...
are not all FALSE
,
stop is called, producing an error message indicating
the first of the elements of ...
which were not false.
stopif(...)
... |
Any number of (logical) R expressions,
which should evaluate to |
(NULL
if all statements in ...
are FALSE
.)
stopifnot
from package base.
## Not run:
stopif(is.empty(c(2,1)), 4 < 3) # all FALSE
stopif(is.empty(numeric(0)))
## End(Not run)