Running ‘testthat.R’ [228s/124s]
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(OmopSketch)
  > 
  > test_check("OmopSketch")
  Starting 2 test processes
  [ FAIL 6 | WARN 1 | SKIP 20 | PASS 91 ]
  
  ══ Skipped tests (20) ══════════════════════════════════════════════════════════
  • On CRAN (20): 'test-mockOmopSketch.R:2:3', 'test-plotInObservation.R:2:3',
    'test-summariseClinicalRecords.R:2:3',
    'test-summariseClinicalRecords.R:81:3',
    'test-summariseClinicalRecords.R:226:3', 'test-summariseInObservation.R:2:3',
    'test-summariseInObservation.R:96:3', 'test-summariseInObservation.R:148:3',
    'test-summariseInObservation.R:186:3', 'test-summariseConceptCounts.R:2:3',
    'test-summariseConceptCounts.R:428:3', 'test-summariseOmopSnapshot.R:2:3',
    'test-summariseOmopSnapshot.R:10:3',
    'test-summarisePopulationCharacteristics.R:2:3',
    'test-summarisePopulationCharacteristics.R:150:3',
    'test-summarisePopulationCharacteristics.R:166:3',
    'test-summariseRecordCount.R:2:3', 'test-summariseRecordCount.R:92:3',
    'test-summariseRecordCount.R:112:3', 'test-summariseRecordCount.R:191:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-summariseOmopSnapshot.R:28:3'): works with mockOmopSketch ────
  Expected `x <- tableOmopSnapshot(summariseOmopSnapshot(cdm))` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'gt'
  ── Error ('test-summariseOmopSnapshot.R:29:3'): works with mockOmopSketch ──────
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true(inherits(x, "gt_tbl")) at test-summariseOmopSnapshot.R:29:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::inherits(x, "gt_tbl")
  ── Failure ('test-summariseObservationPeriod.R:164:3'): check summariseObservationPeriod works ──
  Expected `tableObservationPeriod(resAll)` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'gt'
  ── Failure ('test-summariseObservationPeriod.R:165:3'): check summariseObservationPeriod works ──
  Expected `tableObservationPeriod(resOne)` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'gt'
  ── Failure ('test-summariseObservationPeriod.R:166:3'): check summariseObservationPeriod works ──
  Expected `tableObservationPeriod(resEmpty)` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'gt'
  ── Failure ('test-summariseObservationPeriod.R:323:3'): check it works with mockOmopSketch ──
  Expected `tableObservationPeriod(sop)` to run without any errors.
  i Actually got a <packageNotFoundError> with text:
    there is no package called 'gt'
  
  [ FAIL 6 | WARN 1 | SKIP 20 | PASS 91 ]
  Error: Test failures
  Execution halted