stop {loggit2} | R Documentation |
Stop Log Handler
Description
This function is identical to base R's stop
,
but it includes logging of the exception message via loggit()
.
Usage
stop(..., call. = TRUE, domain = NULL, .loggit = NA, echo = get_echo())
Arguments
... |
zero or more objects which can be coerced to character (and which are pasted together with no separator) or a single condition object. |
call. |
logical, indicating if the call should become part of the error message. |
domain |
see |
.loggit |
Should the condition message be added to the log?
If |
echo |
Should the log entry (json) be echoed to |
Value
No return value.
See Also
Other handlers:
message()
,
stopifnot()
,
warning()
Examples
## Not run:
stop("This is a completely false condition")
stop("This is a completely false condition", echo = FALSE)
## End(Not run)
[Package loggit2 version 2.3.1 Index]