Package: teal.logger Check: examples New result: ERROR Running examples in ‘teal.logger-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: suppress_logs > ### Title: Suppress logger logs > ### Aliases: suppress_logs > > ### ** Examples > > testthat::test_that("An example test", { + suppress_logs() + testthat::expect_true(TRUE) + }) ── Error: An example test ────────────────────────────────────────────────────── Error in `(function (appender = NULL, namespace = "global", index = 1) { if (!is.null(appender) && !is.function(appender)) { stop("`appender` must be a function") } log_config_setter("appender", appender, namespace = namespace, index = index) })(dots[[1L]][[1L]], dots[[2L]][[1L]])`: `appender` must be a function Backtrace: ▆ 1. ├─withr (local) ``() 2. └─base::mapply(logger::log_appender, old_log_appenders, old_log_namespaces) 3. └─logger (local) ``(dots[[1L]][[1L]], dots[[2L]][[1L]]) Error: ! Test failed Backtrace: ▆ 1. ├─testthat::test_that(...) 2. │ └─withr (local) ``() 3. └─reporter$stop_if_needed() 4. └─rlang::abort("Test failed", call = NULL) Execution halted