Running ‘testthat.R’ [39s/24s]
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 6 | WARN 0 | SKIP 0 | PASS 273 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-fxTable.R:9:3'): fxTable ───────────────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `fxTable(table_to_format, style = list(header = list(cell = officer::fp_cell(background.color = "#c8c8c8"), 
      text = officer::fp_text(bold = TRUE)), header_name = list(cell = officer::fp_cell(background.color = "#d9d9d9"), 
      text = officer::fp_text(bold = TRUE)), header_level = list(cell = officer::fp_cell(background.color = "#e1e1e1"), 
      text = officer::fp_text(bold = TRUE)), column_name = list(text = officer::fp_text(bold = TRUE)), 
      title = list(text = officer::fp_text(bold = TRUE, color = "blue"))), 
      na = NULL, title = "Test 1", subtitle = NULL, caption = NULL, 
      groupColumn = NULL, groupAsColumn = FALSE, groupOrder = NULL)`: The package "flextable" is required.
  Backtrace:
      ▆
   1. └─visOmopResults::fxTable(...) at test-fxTable.R:9:3
   2.   └─rlang::check_installed("flextable")
  ── Error ('test-fxTable.R:170:3'): fxTable, test default styles and NULL ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `fxTable(table_to_format, style = NULL, na = NULL, title = "Test 1", 
      subtitle = NULL, caption = NULL, groupColumn = NULL, groupAsColumn = FALSE, 
      groupOrder = NULL)`: The package "flextable" is required.
  Backtrace:
      ▆
   1. └─visOmopResults::fxTable(...) at test-fxTable.R:170:3
   2.   └─rlang::check_installed("flextable")
  ── Error ('test-fxTable.R:258:3'): fxTable, test colsToMergeRows ───────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `fxTable(x = table_to_format, style = "default", na = "-", title = "Title test 2", 
      subtitle = "Subtitle for test 2", caption = "*This* is the caption", 
      groupColumn = "group_level", groupAsColumn = FALSE, groupOrder = NULL, 
      colsToMergeRows = "all_columns")`: The package "flextable" is required.
  Backtrace:
      ▆
   1. └─visOmopResults::fxTable(...) at test-fxTable.R:258:3
   2.   └─rlang::check_installed("flextable")
  ── Failure ('test-visOmopTable.R:45:3'): visOmopTable ──────────────────────────
  Expected `... <- NULL` to run without any errors.
  i Actually got a <rlib_error_package_not_found> with text:
    The package "flextable" is required.
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-visOmopTable.R:45: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. └─testthat::expect_no_error(...)
  ── Error ('test-visOmopTable.R:58:3'): visOmopTable ────────────────────────────
  Error in `eval(code, test_env)`: object 'fx1' not found
  Backtrace:
      ▆
   1. └─testthat::expect_true("flextable" == class(fx1)) at test-visOmopTable.R:58:3
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-visOmopTable.R:197:3'): renameColumn works ─────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `visOmopResults::fxTable(x, delim = .options$delim, style = .options$style, 
      na = .options$na, title = .options$title, subtitle = .options$subtitle, 
      caption = .options$caption, groupColumn = newGroupcolumn, 
      groupAsColumn = .options$groupAsColumn, groupOrder = .options$groupOrder, 
      colsToMergeRows = .options$colsToMergeRows)`: The package "flextable" is required.
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-visOmopTable.R:197: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. ├─testthat::expect_warning(...)
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. └─visOmopResults::visOmopTable(...)
   14.   └─visOmopResults::fxTable(...)
   15.     └─rlang::check_installed("flextable")
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 273 ]
  Error: Test failures
  Execution halted