Running ‘testthat.R’ [54s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(arsenal)
  > 
  > test_check("arsenal")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (12)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_lhs_tableby.R:410:3): 06/11/2019: retaining control.list with merge() (#221) ──
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test_lhs_tableby.R:410:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─arsenal:::capture.kable(summary(merge(tab1, tab2)))
    5.   └─utils::capture.output(x) helper-script.R:4:2
    6.     ├─base::print(out$value)
    7.     └─arsenal:::print.summary.arsenal_table(out$value)
    8.       ├─base::as.data.frame(...)
    9.       └─arsenal:::as.data.frame.summary.tableby(...)
   10.         └─base::Map(...)
   11.           └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   12.             └─(function (df, totals, hasStrata, term.name, control, text, pfootnote, ...
   13.               └─base::lapply(...)
   14.                 └─arsenal:::FUN(X[[i]], ...)
   15.                   ├─base::unlist(...)
   16.                   └─base::Map(...)
   17.                     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   18.                       ├─(function (x, ...) ...
   19.                       └─base::format.default(...)
  ── Error (test_tableby.R:535:3): 09/13/2017: Peter Martin and rounding to integers (#23) ──
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test_tableby.R:535:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─arsenal:::capture.kable(...)
    5.   └─utils::capture.output(x) helper-script.R:4:2
    6.     ├─base::print(out$value)
    7.     └─arsenal:::print.summary.arsenal_table(out$value)
    8.       ├─base::as.data.frame(...)
    9.       └─arsenal:::as.data.frame.summary.tableby(...)
   10.         └─base::Map(...)
   11.           └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   12.             └─(function (df, totals, hasStrata, term.name, control, text, pfootnote, ...
   13.               └─base::lapply(...)
   14.                 └─arsenal:::FUN(X[[i]], ...)
   15.                   ├─base::unlist(...)
   16.                   └─base::Map(...)
   17.                     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   18.                       ├─(function (x, ...) ...
   19.                       └─base::format.default(...)
  ── Error (test_tableby.R:895:3): 09/07/2018: specifying different digits (#107) and cat.simplify (#134) and numeric.simplify (#139) ──
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test_tableby.R:895:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─arsenal:::capture.kable(...)
    5.   └─utils::capture.output(x) helper-script.R:4:2
    6.     ├─base::print(out$value)
    7.     └─arsenal:::print.summary.arsenal_table(out$value)
    8.       ├─base::as.data.frame(...)
    9.       └─arsenal:::as.data.frame.summary.tableby(...)
   10.         └─base::Map(...)
   11.           └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   12.             └─(function (df, totals, hasStrata, term.name, control, text, pfootnote, ...
   13.               └─base::lapply(...)
   14.                 └─arsenal:::FUN(X[[i]], ...)
   15.                   ├─base::unlist(...)
   16.                   └─base::Map(...)
   17.                     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   18.                       ├─(function (x, ...) ...
   19.                       └─base::format.default(...)
  
  [ FAIL 3 | WARN 0 | SKIP 12 | PASS 470 ]
  Error: Test failures
  Execution halted