Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘OmopSketch-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: tableOmopSnapshot > ### Title: Create a visual table from a summarise_omop_snapshot result. > ### Aliases: tableOmopSnapshot > > ### ** Examples > > cdm <- mockOmopSketch(numberIndividuals = 10) > > result <- summariseOmopSnapshot(cdm) > > result |> + tableOmopSnapshot() ! Results have not been suppressed. Error in loadNamespace(x) : there is no package called ‘gt’ Calls: tableOmopSnapshot ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed mockOmopSketch 6.230 0.340 6.615 summariseOmopSnapshot 4.982 0.201 5.032 Check: tests, Result: ERROR Running ‘testthat.R’ [128s/66s] 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-plotInObservation.R:2:3', 'test-mockOmopSketch.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 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 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 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 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 with text: there is no package called 'gt' [ FAIL 6 | WARN 1 | SKIP 20 | PASS 91 ] Error: Test failures Execution halted