powered by
This function uses trace to add a log_error function call when stop is called to log the error messages with the logger layout and appender.
trace
log_error
stop
logger
log_errors(muffle = getOption("logger_muffle_errors", FALSE))
if TRUE, the error is not thrown after being logged
if (FALSE) { log_errors() stop("foobar") }
Run the code above in your browser using DataLab