Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(visOmopResults)
  > 
  > test_check("visOmopResults")
  Starting 2 test processes
  [ FAIL 13 | WARN 30 | SKIP 0 | PASS 250 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-formatEstimateValue.R:210:5'): formatEstimateValue ─────────────
  Error in `dplyr::union_all(mockSummarisedResult(), dplyr::tibble(cdm_name = "mock", 
      result_type = NA_character_, package_name = "visOmopResults", 
      package_version = as.character(utils::packageVersion("visOmopResults")), 
      group_name = "cohort_name", group_level = "cohort3", strata_name = rep(c("overall", 
          rep("age_group and sex", 4), rep("sex", 2), rep("age_group", 
              2)), 2), strata_level = rep(c("overall", "<40 and Male", 
          ">=40 and Male", "<40 and Female", ">=40 and Female", 
          "Male", "Female", "<40", ">=40"), 2), variable_name = "number subjects", 
      variable_level = NA_character_, estimate_name = "count", 
      estimate_type = "integer", estimate_value = NA_character_, 
      additional_name = "overall", additional_level = "overall"))`: `x` and `y` are not compatible.
  x Different number of columns: 16 vs 15.
  Backtrace:
      ▆
   1. ├─dplyr::union_all(...) at test-formatEstimateValue.R:210:5
   2. └─dplyr:::union_all.data.frame(...)
   3.   └─dplyr:::check_compatible(x, y)
   4.     └─rlang::abort(c("`x` and `y` are not compatible.", compat), call = error_call)
  ── Failure ('test-gtTable.R:109:3'): gtTable ───────────────────────────────────
  ... == 11 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-fxTable.R:55:3'): fxTable ────────────────────────────────────
  unique(fxResult$body$styles$pars$text.align$data[1, 12:29]) (`actual`) not equal to "right" (`expected`).
  
  `actual`:   "left" "right"
  `expected`:        "right"
  ── Failure ('test-fxTable.R:56:3'): fxTable ────────────────────────────────────
  unique(fxResult$body$styles$pars$text.align$data[3, 12:29]) (`actual`) not equal to "right" (`expected`).
  
  `actual`:   "left" "right"
  `expected`:        "right"
  ── Failure ('test-fxTable.R:57:3'): fxTable ────────────────────────────────────
  unique(fxResult$body$styles$pars$text.align$data[5, 12:29]) (`actual`) not equal to "right" (`expected`).
  
  `actual`:   "left" "right"
  `expected`:        "right"
  ── Failure ('test-fxTable.R:117:3'): fxTable ───────────────────────────────────
  fxResult$body$spans$rows[1, ] (`actual`) not equal to c(1, 20, rep(0, 19)) (`expected`).
  
    `actual[1:6]`: 1 21 0 0 0 0
  `expected[1:5]`: 1 20   0 0 0
  ── Failure ('test-fxTable.R:118:3'): fxTable ───────────────────────────────────
  fxResult$body$spans$rows[7, ] (`actual`) not equal to c(1, 20, rep(0, 19)) (`expected`).
  
    `actual[1:6]`: 1 21 0 0 0 0
  `expected[1:5]`: 1 20   0 0 0
  ── Failure ('test-fxTable.R:119:3'): fxTable ───────────────────────────────────
  fxResult$body$spans$rows[3, ] (`actual`) not equal to rep(1, 21) (`expected`).
  
    `actual[19:22]`: 1 1 1 1
  `expected[19:21]`: 1 1 1  
  ── Failure ('test-fxTable.R:149:3'): fxTable ───────────────────────────────────
  fxResult$body$spans$rows[3, ] (`actual`) not equal to rep(1, 21) (`expected`).
  
    `actual[19:22]`: 1 1 1 1
  `expected[19:21]`: 1 1 1  
  ── Failure ('test-fxTable.R:280:3'): fxTable, test colsToMergeRows ─────────────
  fxResult$body$styles$cells$border.color.top$data[, 7] (`actual`) not equal to c(...) (`expected`).
  
       actual  | expected               
   [1] "gray"  | "gray"   [1]           
   [2] "gray"  | "gray"   [2]           
   [3] "black" - "gray"   [3]           
   [4] "black" | "black"  [4]           
   [5] "black" - "gray"   [5]           
   [6] "black" | "black"  [6]           
   [7] "black" | "black"  [7]           
   [8] "black" | "black"  [8]           
   [9] "gray"  | "gray"   [9]           
  [10] "gray"  | "gray"   [10]          
   ... ...       ...      and 6 more ...
  ── Failure ('test-fxTable.R:283:3'): fxTable, test colsToMergeRows ─────────────
  fxResult$body$styles$cells$border.color.top$data[, 8] (`actual`) not equal to c(...) (`expected`).
  
  `actual[4:10]`:   "black" "gray" "black" "black" "black" "gray" "gray"
  `expected[4:10]`: "black" "gray" "black" "gray"  "black" "gray" "gray"
  
  `actual[12:16]`:   "black" "gray" "black" "black" "black"
  `expected[12:16]`: "black" "gray" "black" "gray"  "black"
  ── Failure ('test-fxTable.R:306:3'): fxTable, test colsToMergeRows ─────────────
  fxResult$body$styles$cells$border.color.top$data[, 2] (`actual`) not equal to c(...) (`expected`).
  
       actual | expected               
   [1] "gray" | "gray"   [1]           
   [2] "gray" | "gray"   [2]           
   [3] "gray" - "black"  [3]           
   [4] "gray" - "black"  [4]           
   [5] "gray" - "black"  [5]           
   [6] "gray" - "black"  [6]           
   [7] "gray" - "black"  [7]           
   [8] "gray" - "black"  [8]           
   [9] "gray" | "gray"   [9]           
  [10] "gray" | "gray"   [10]          
   ... ...      ...      and 6 more ...
  ── Failure ('test-fxTable.R:309:3'): fxTable, test colsToMergeRows ─────────────
  fxResult$body$styles$cells$border.color.top$data[, 7] (`actual`) not equal to c(...) (`expected`).
  
       actual | expected               
   [1] "gray" | "gray"   [1]           
   [2] "gray" | "gray"   [2]           
   [3] "gray" | "gray"   [3]           
   [4] "gray" - "black"  [4]           
   [5] "gray" | "gray"   [5]           
   [6] "gray" - "black"  [6]           
   [7] "gray" - "black"  [7]           
   [8] "gray" - "black"  [8]           
   [9] "gray" | "gray"   [9]           
  [10] "gray" | "gray"   [10]          
   ... ...      ...      and 6 more ...
  
  [ FAIL 13 | WARN 30 | SKIP 0 | PASS 250 ]
  Error: Test failures
  Execution halted