Running ‘testthat.R’ [323s/276s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(DrugUtilisation)
  > 
  > test_check("DrugUtilisation")
  Starting 2 test processes
  [ FAIL 3 | WARN 71 | SKIP 20 | PASS 154 ]
  
  ══ Skipped tests (20) ══════════════════════════════════════════════════════════
  • On CRAN (19): 'test-benchmarkDUS.R:2:3', 'test-dailyDose.R:2:3',
    'test-generateDrugUtilisationCohortSet.R:48:3',
    'test-generateDrugUtilisationCohortSet.R:147:3',
    'test-generateDrugUtilisationCohortSet.R:203:3',
    'test-generateDrugUtilisationCohortSet.R:253:3',
    'test-generateDrugUtilisationCohortSet.R:349:3', 'test-drugUse.R:2:3',
    'test-drugUse.R:40:3', 'test-drugUse.R:254:3', 'test-drugUse.R:455:3',
    'test-drugUse.R:597:3', 'test-drugUse.R:847:3', 'test-drugUse.R:868:3',
    'test-drugUse.R:914:3', 'test-indication.R:3:3', 'test-indication.R:185:3',
    'test-indication.R:339:3', 'test-indication.R:464:3'
  • empty test (1): 'test-generateConceptCohortSet.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-indication.R:648:3'): summariseIndication ────────────────────
  grepl("summarised_indication", unique(result$result_type)) is not TRUE
  
  `actual`:       
  `expected`: TRUE
  ── Failure ('test-largeScaleCharacteristics.R:8:3'): basic functionality summariseCodelist ──
  Expected `summariseCharacteristicsFromCodelist(cdm[["cohort1"]], conceptSet = conceptSet)` to run without any errors.
  i Actually got a <vctrs_error_subscript_oob> with text:
    Can't select columns that don't exist.
    x Column `result_type` doesn't exist.
  ── Failure ('test-largeScaleCharacteristics.R:14:3'): basic functionality summariseCodelist ──
  Expected `summariseCharacteristicsFromCodelist(...)` to run without any errors.
  i Actually got a <vctrs_error_subscript_oob> with text:
    Can't select columns that don't exist.
    x Column `result_type` doesn't exist.
  
  [ FAIL 3 | WARN 71 | SKIP 20 | PASS 154 ]
  Error: Test failures
  Execution halted