Running ‘testthat.R’ [62s/94s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(inTextSummaryTable)
  > 
  > test_check("inTextSummaryTable")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_computeSummaryStatisticsTable-rowVar.R:171:2): row variables are correctly ordered based on alphabetical order ──
  levels(resAlphabet$TRT) not identical to c("A", "B").
  2/2 mismatches
  x[1]: "1"
  y[1]: "A"
  
  x[2]: "2"
  y[2]: "B"
  ── Failure (test_createFlextableWithHeader.R:13:2): Create a flextable simple header ──
  setdiff(res$colsData, "") not identical to colnames(data).
  names for target but not for current
  ── Failure (test_exportSummaryStatisticsTable-DT.R:527:2): table is exported to DT with row variables with expand variables ──
  `isControlPresent` has length 2, not length 1.
  ── Error (test_exportSummaryStatisticsTable-DT.R:528:2): table is exported to DT with row variables with expand variables ──
  Error: $ operator is invalid for atomic vectors
  Backtrace:
      █
   1. └─testthat::expect_equal(cDefs[[isControlPresent]]$className, "details-control") test_exportSummaryStatisticsTable-DT.R:528:8
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure (test_exportSummaryStatisticsTable-DT.R:558:2): one statistical variable is expanded ──
  `isControlPresent` has length 2, not length 1.
  ── Error (test_exportSummaryStatisticsTable-DT.R:559:2): one statistical variable is expanded ──
  Error: $ operator is invalid for atomic vectors
  Backtrace:
      █
   1. └─testthat::expect_equal(cDefs[[isControlPresent]]$className, "details-control") test_exportSummaryStatisticsTable-DT.R:559:8
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 6 | WARN 7 | SKIP 3 | PASS 959 ]
  Error: Test failures
  Execution halted