Learn R Programming

lgr (version 0.1.1)

suspend_logging: Suspend All Logging

Description

Completely disable logging for all loggers. This is for example useful for automated test code.

Usage

suspend_logging()

unsuspend_logging()

without_logging(code)

Arguments

code

Any R code

Value

suspend_logging() and unsuspend_logging() return NULL (invisibly), without_logging returns whatever code returns

Examples

Run this code
# NOT RUN {
without_logging({
  FATAL("FOO")
  INFO("BAR")
})

# }

Run the code above in your browser using DataLab