stopifnot {loggit2} | R Documentation |
This function is identical to base R's stopifnot
,
but it includes logging of the exception message via loggit()
.
stopifnot(..., exprObject, local, .loggit = TRUE, echo = TRUE)
... |
zero or more objects which can be coerced to character
(and which are pasted together with no separator) or (for
|
exprObject |
alternative to |
local |
(only when |
.loggit |
Should |
echo |
Should |
(NULL
if all statements in ...
are TRUE
.)
Other handlers:
message()
,
stop()
,
warning()
stopifnot("This is a completely false condition, which throws an error" = TRUE)