powered by
This function is identical to base R's stop, but it includes logging of the exception message via loggit().
stop
loggit()
stop(..., call. = TRUE, domain = NULL, .loggit = NA, echo = get_echo())
No return value.
zero or more objects which can be coerced to character (and which are pasted together with no separator) or a single condition object.
logical, indicating if the call should become part of the error message.
see gettext. If NA, messages will not be translated.
gettext
NA
Should the condition message be added to the log? If NA the log level set by set_log_level() is used to determine if the condition should be logged.
set_log_level()
Should the log entry (json) be echoed to stdout as well?
stdout
Other handlers: message(), stopifnot(), warning()
message()
stopifnot()
warning()
if (FALSE) { stop("This is a completely false condition") stop("This is a completely false condition", echo = FALSE) }
Run the code above in your browser using DataLab