powered by
Completely disable logging for all loggers. This is for example useful for automated test code.
suspend_logging()unsuspend_logging()without_logging(code)
unsuspend_logging()
without_logging(code)
Any R code
suspend_logging() and unsuspend_logging() return NULL (invisibly), without_logging returns whatever code returns
suspend_logging()
NULL
without_logging
code
# NOT RUN { without_logging({ FATAL("FOO") INFO("BAR") }) # }
Run the code above in your browser using DataLab