Running ‘testthat.R’ [67s/87s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(MeasurementDiagnostics)
  > 
  > test_check("MeasurementDiagnostics")
  Saving _problems/test-plotMeasurementValueAsConcept-10.R
  Saving _problems/test-plotMeasurementValueAsConcept-11.R
  Saving _problems/test-plotMeasurementValueAsNumeric-12.R
  Saving _problems/test-plotMeasurementValueAsNumeric-13.R
  Saving _problems/test-tableMeasurementTimings-14.R
  Saving _problems/test-tableMeasurementTimings-15.R
  Saving _problems/test-tableMeasurementValueAsConcept-14.R
  Saving _problems/test-tableMeasurementValueAsConcept-15.R
  Saving _problems/test-tableMeasurementValueAsNumeric-14.R
  Saving _problems/test-tableMeasurementValueAsNumeric-15.R
  [ FAIL 10 | WARN 15 | SKIP 10 | PASS 0 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-plotMeasurementTimings.R:2:3',
    'test-summariseCohortMeasurementUse.R:2:3',
    'test-summariseCohortMeasurementUse.R:91:3',
    'test-summariseCohortMeasurementUse.R:200:3',
    'test-summariseCohortMeasurementUse.R:268:3',
    'test-summariseMeasurementUse.R:2:3', 'test-summariseMeasurementUse.R:119:3',
    'test-summariseMeasurementUse.R:182:3',
    'test-summariseMeasurementUse.R:229:3',
    'test-summariseMeasurementUse.R:270:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-plotMeasurementValueAsConcept.R:10:3'): plotMeasurementValueAsConcept works ──
  Expected `x <- plotMeasurementValueAsConcept(result)` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "visOmopResults" is required.
  ── Error ('test-plotMeasurementValueAsConcept.R:11:3'): plotMeasurementValueAsConcept works ──
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true(ggplot2::is_ggplot(x)) at test-plotMeasurementValueAsConcept.R:11:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggplot2::is_ggplot(x)
   5.   └─S7::S7_inherits(x, class_ggplot)
  ── Failure ('test-plotMeasurementValueAsNumeric.R:12:3'): plotMeasurementValueAsNumeric works ──
  Expected `x <- plotMeasurementValueAsNumeric(result)` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "visOmopResults" is required.
  ── Error ('test-plotMeasurementValueAsNumeric.R:13:3'): plotMeasurementValueAsNumeric works ──
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true(ggplot2::is_ggplot(x)) at test-plotMeasurementValueAsNumeric.R:13:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggplot2::is_ggplot(x)
   5.   └─S7::S7_inherits(x, class_ggplot)
  ── Failure ('test-tableMeasurementTimings.R:9:3'): check that it works  ────────
  Expected `... <- NULL` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "visOmopResults" is required.
  ── Error ('test-tableMeasurementTimings.R:15:3'): check that it works  ─────────
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true("gt_tbl" %in% class(x)) at test-tableMeasurementTimings.R:15:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─"gt_tbl" %in% class(x)
  ── Failure ('test-tableMeasurementValueAsConcept.R:9:3'): table works ──────────
  Expected `... <- NULL` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "visOmopResults" is required.
  ── Error ('test-tableMeasurementValueAsConcept.R:15:3'): table works ───────────
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true("gt_tbl" %in% class(x)) at test-tableMeasurementValueAsConcept.R:15:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─"gt_tbl" %in% class(x)
  ── Failure ('test-tableMeasurementValueAsNumeric.R:9:3'): table works ──────────
  Expected `... <- NULL` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "visOmopResults" is required.
  ── Error ('test-tableMeasurementValueAsNumeric.R:15:3'): table works ───────────
  Error in `eval(code, test_env)`: object 'x' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_true("gt_tbl" %in% class(x)) at test-tableMeasurementValueAsNumeric.R:15:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─"gt_tbl" %in% class(x)
  
  [ FAIL 10 | WARN 15 | SKIP 10 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted