Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(logger)
  > 
  > if (identical(Sys.getenv("NOT_CRAN"), "true")) {
  +     test_check('logger')
  + } else {
  +     test_check('logger', filter = '^[a-z]*$')
  + }
  WARN [2024-10-14 12:21:44] Running "sum(1:10)" as "FunDoesNotExist(1:10)" failed: "could not find function \"FunDoesNotExist\""
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 228 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-logger.R:153:5'): providing log_level() args to wrappers diretly is OK ──
  Error in `value[[3L]](cond)`: `glue` failed in `formatter_glue` on:
  
    chr "{Sepal.Length}" 
  
  Raw error message:
  
   is.environment(.envir) is not TRUE 
  
  Please consider using another `log_formatter` or `skip_formatter` on strings with curly braces.
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(log_info("{Sepal.Length}", .topenv = iris)) at test-logger.R:153:5
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─logger::log_info("{Sepal.Length}", .topenv = iris)
   10.   └─logger::log_level(...)
   11.     └─base::lapply(...)
   12.       └─logger (local) FUN(X[[i]], ...)
   13.         ├─base::structure(do.call(log_fun, log_arg), class = "logger")
   14.         ├─base::do.call(log_fun, log_arg)
   15.         └─logger (local) `<fn>`(...)
   16.           ├─base::do.call(...)
   17.           └─logger (local) `<fn>`(...)
   18.             └─base::tryCatch(...)
   19.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   20.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   21.                   └─value[[3L]](cond)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 228 ]
  Error: Test failures
  Execution halted