Running ‘testthat.R’ [37s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DescrTab2)
  > 
  > 
  > test_check("DescrTab2")
  [ FAIL 2 | WARN 189 | SKIP 7 | PASS 199 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test_console_output.R:17:1', 'test_html.R:5:5',
    'test_numeric.R:44:1', 'test_tests.R:24:1', 'test_tex.R:4:3',
    'test_word.R:6:5'
  • empty test (1): 'test_misc.R:50:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_summary_stats.R:67:5'): continuous summary stats work ────────
  `descr(...)` threw an unexpected error.
  Message: object 'y' not found
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_summary_stats.R:67:5
    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. └─DescrTab2::descr(...)
    8.   └─DescrTab2:::descr_var(...)
    9.     └─summary_stats[[summary_stat_name]](var_grp)
   10.       ├─base::withCallingHandlers(...)
   11.       ├─stats::wilcox.test(var, conf.int = TRUE)
   12.       └─stats:::wilcox.test.default(var, conf.int = TRUE)
   13.         └─stats:::.wilcox_test_one_cint_exact(...)
   14.           └─stats:::.qsignrank(alpha/2, n, z)
  ── Error ('test_summary_stats.R:85:5'): edge cases are handled correctly in summary stats ──
  Error: object 'y' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_summary_stats.R:85:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─DescrTab2:::.HLCIlower(...)
   5.   ├─base::withCallingHandlers(...)
   6.   ├─stats::wilcox.test(var, conf.int = TRUE)
   7.   └─stats:::wilcox.test.default(var, conf.int = TRUE)
   8.     └─stats:::.wilcox_test_one_cint_exact(...)
   9.       └─stats:::.qsignrank(alpha/2, n, z)
  
  [ FAIL 2 | WARN 189 | SKIP 7 | PASS 199 ]
  Error: Test failures
  Execution halted