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()
)
aryoda/tryCatchLog documentation built on Feb. 6, 2023, 1:42 a.m.