stopif {bazar} | R Documentation |
Ensure that R expressions are false
Description
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.
Usage
stopif(...)
Arguments
... |
Any number of (logical) R expressions,
which should evaluate to |
Value
(NULL
if all statements in ...
are FALSE
.)
See Also
stopifnot
from package base.
Examples
## Not run:
stopif(is.empty(c(2,1)), 4 < 3) # all FALSE
stopif(is.empty(numeric(0)))
## End(Not run)
[Package bazar version 1.0.11 Index]