Running ‘testthat.R’ [298s/155s]
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 4 | WARN 0 | SKIP 20 | PASS 82 ]
  
  ══ 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:213:3', 'test-summariseInObservation.R:2:3',
    'test-summariseInObservation.R:96:3', 'test-summariseInObservation.R:148:3',
    'test-summariseInObservation.R:184: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:149:3',
    'test-summarisePopulationCharacteristics.R:165:3',
    'test-summariseRecordCount.R:2:3', 'test-summariseRecordCount.R:92:3',
    'test-summariseRecordCount.R:112:3', 'test-summariseRecordCount.R:189:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-summarisePopulationCharacteristics.R:125:3'): summarisePopulationCharacteristics() works ──
  Expected `... <- NULL` to run without any errors.
  i Actually got a <rlang_error> with text:
    `variable_name` must not contain NA.
  ── Error ('test-summarisePopulationCharacteristics.R:130:3'): summarisePopulationCharacteristics() works ──
  Error in `eval(code, test_env)`: object 'summarisedPopulation' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true(inherits(summarisedPopulation, "summarised_result")) at test-summarisePopulationCharacteristics.R:130:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::inherits(summarisedPopulation, "summarised_result")
  ── Failure ('test-summarisePopulationCharacteristics.R:183:3'): summarisePopulationCharacteristics() works with mockOmopSKetch ──
  Expected `summarisedPopulation <- summarisePopulationCharacteristics(cdm = cdm)` to run without any errors.
  i Actually got a <rlang_error> with text:
    `variable_name` must not contain NA.
  ── Error ('test-summarisePopulationCharacteristics.R:186:3'): summarisePopulationCharacteristics() works with mockOmopSKetch ──
  Error in `eval(code, test_env)`: object 'summarisedPopulation' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true(inherits(summarisedPopulation, "summarised_result")) at test-summarisePopulationCharacteristics.R:186:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::inherits(summarisedPopulation, "summarised_result")
  
  [ FAIL 4 | WARN 0 | SKIP 20 | PASS 82 ]
  Error: Test failures
  Execution halted