log_warnings | R Documentation |
This function uses trace
to add a log_warn
function call when
warning
is called to log the warning messages with the logger
layout and appender.
log_warnings(muffle = getOption("logger_muffle_warnings", FALSE))
muffle |
if TRUE, the warning is not shown after being logged |
## Not run:
log_warnings()
for (i in 1:5) {
Sys.sleep(runif(1))
warning(i)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.