Running ‘testthat.R’ [17s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(withr)
  > 
  > test_check("withr")
  Saving _problems/test-language-12.R
  Saving _problems/test-language-33.R
  [ FAIL 2 | WARN 0 | SKIP 5 | PASS 374 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (5): 'test-defer.R:15:1', 'test-defer.R:32:1',
    'test-language.R:43:1', 'test-path.R:1:1', 'test-standalone-defer.R:193:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-language.R:12:3'): can temporarily change language ─────────────
  <notSubsettableError/error/condition>
  Error in `mean[[1]]`: no se puede seleccionar elementos de un objeto de tipo 'closure'
  Backtrace:
      ▆
   1. ├─testthat::expect_error(with_language("es", mean[[1]]), "no es subconjunto") at test-language.R:12:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─withr::with_language("es", mean[[1]])
  ── Error ('test-language.R:33:3'): can temporarily change language after triggering error ──
  <notSubsettableError/error/condition>
  Error in `mean[[1]]`: no se puede seleccionar elementos de un objeto de tipo 'closure'
  Backtrace:
      ▆
   1. ├─testthat::expect_error(with_language("es", mean[[1]]), "no es subconjunto") at test-language.R:33:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─withr::with_language("es", mean[[1]])
  
  [ FAIL 2 | WARN 0 | SKIP 5 | PASS 374 ]
  Error:
  ! Test failures.
  Execution halted
  No deferred expressions to run
  No deferred expressions to run