tests/testthat/disable_logging_output.R

library(tryCatchLog)


# test helper script to disable the package-internal logging output
# (as futile.logger's "flog.threshold("FATAL")" does)

tryCatchLog:::set.logging.functions(
    error.log.func = function(msg) invisible()
  , warn.log.func  = function(msg) invisible()
  , info.log.func  =  function(msg) invisible()
)

Try the tryCatchLog package in your browser

Any scripts or data that you put into this service are public.

tryCatchLog documentation built on Oct. 25, 2021, 9:08 a.m.