Running ‘testthat.R’ [374s/193s]
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 4 | WARN 9 | SKIP 20 | PASS 146 ]
  
  ══ 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 ════════════════════════════════════════════════════════════════
  ── Error ('test-generatedAtcCohortSet.R:4:3'): test same results for ingredient cohorts ──
  Error in `CodelistGenerator::getATCCodes(cdm, name = atcName, level = level, 
      doseForm = doseForm, withConceptDetails = FALSE)`: unused argument (withConceptDetails = FALSE)
  Backtrace:
      ▆
   1. └─DrugUtilisation::generateAtcCohortSet(cdm = cdm, name = "test_cohort_1") at test-generatedAtcCohortSet.R:4:3
  ── Error ('test-generatedIngredientCohortSet.R:4:3'): test same results for ingredient cohorts ──
  Error in `CodelistGenerator::getDrugIngredientCodes(cdm = cdm, name = ingredient, 
      doseForm = doseForm, ingredientRange = ingredientRange, withConceptDetails = FALSE)`: unused argument (withConceptDetails = FALSE)
  Backtrace:
      ▆
   1. └─DrugUtilisation::generateIngredientCohortSet(...) at test-generatedIngredientCohortSet.R:4:3
  ── Error ('test-generatedIngredientCohortSet.R:54:3'): date works ──────────────
  Error in `CodelistGenerator::getDrugIngredientCodes(cdm = cdm, name = ingredient, 
      doseForm = doseForm, ingredientRange = ingredientRange, withConceptDetails = FALSE)`: unused argument (withConceptDetails = FALSE)
  Backtrace:
      ▆
   1. └─DrugUtilisation::generateIngredientCohortSet(...) at test-generatedIngredientCohortSet.R:54:3
  ── Error ('test-generatedIngredientCohortSet.R:77:3'): ingredient list and vector both work ──
  Error in `CodelistGenerator::getDrugIngredientCodes(cdm = cdm, name = ingredient, 
      doseForm = doseForm, ingredientRange = ingredientRange, withConceptDetails = FALSE)`: unused argument (withConceptDetails = FALSE)
  Backtrace:
      ▆
   1. └─DrugUtilisation::generateIngredientCohortSet(...) at test-generatedIngredientCohortSet.R:77:3
  
  [ FAIL 4 | WARN 9 | SKIP 20 | PASS 146 ]
  Error: Test failures
  Execution halted