R Under development (unstable) (2025-11-18 r89035 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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. > test-addDrugUtilisation.R: i Subsetting drug_exposure table > test-addDrugUtilisation.R: i Checking whether any record needs to be dropped. > test-addDrugUtilisation.R: i Collapsing overlaping records. > test-addDrugUtilisation.R: i Collapsing records with gapEra = 1 days. > test-indication.R: i Intersect with indications table (cohort2) > test-indication.R: i Summarising indications. > test-indication.R: i Intersect with indications table (cohort2) > test-indication.R: i Summarising indications. > test-summariseDrugRestart.R: i Subsetting drug_exposure table > test-summariseDrugRestart.R: i Checking whether any record needs to be dropped. > test-summariseDrugRestart.R: i Collapsing overlaping records. > test-summariseDrugRestart.R: i Collapsing records with gapEra = 1 days. > test-summariseProportionOfPatientsCovered.R: Setting followUpDays to maximum time from first cohort entry to last cohort exit per cohort > test-summariseProportionOfPatientsCovered.R: Getting PPC for cohort cohort_1 > test-summariseProportionOfPatientsCovered.R: Collecting cohort into memory > test-summariseProportionOfPatientsCovered.R: Geting PPC over 19 days following first cohort entry > test-summariseProportionOfPatientsCovered.R: Getting PPC for cohort cohort_1 > test-summariseProportionOfPatientsCovered.R: Collecting cohort into memory > test-summariseProportionOfPatientsCovered.R: Geting PPC over 30 days following first cohort entry > test-summariseTreatment.R: i Intersect with medications table (cohort2) > test-summariseTreatment.R: i Summarising medications. > test-summariseTreatment.R: i Subsetting drug_exposure table > test-summariseTreatment.R: i Checking whether any record needs to be dropped. > test-summariseTreatment.R: i Collapsing overlaping records. > test-summariseTreatment.R: i Collapsing records with gapEra = 1 days. > test-summariseTreatment.R: i Intersect with medications table (dus_cohort) > test-summariseTreatment.R: i Summarising medications. > test-summariseTreatment.R: i Intersect with medications table (cohort2) > test-summariseTreatment.R: i Summarising medications. > test-summariseTreatment.R: i Intersect with medications table (cohort2). [ FAIL 0 | WARN 0 | SKIP 44 | PASS 105 ] ══ Skipped tests (44) ══════════════════════════════════════════════════════════ • On CRAN (44): 'test-benchmarkDrugUtilisation.R:2:3', 'test-dailyDose.R:2:3', 'test-addDrugUtilisation.R:3:3', 'test-addDrugUtilisation.R:161:3', 'test-addDrugUtilisation.R:200:3', 'test-generateDrugUtilisationCohortSet.R:2:3', 'test-generateDrugUtilisationCohortSet.R:26:3', 'test-generateDrugUtilisationCohortSet.R:96:3', 'test-generateDrugUtilisationCohortSet.R:212:3', 'test-generatedAtcCohortSet.R:2:3', 'test-generatedIngredientCohortSet.R:2:3', 'test-generatedIngredientCohortSet.R:33:3', 'test-generatedIngredientCohortSet.R:48:3', 'test-generatedIngredientCohortSet.R:64:3', 'test-generatedIngredientCohortSet.R:94:3', 'test-patterns.R:2:3', 'test-plotProportionOfPatientsCovered.R:2:3', 'test-plotProportionOfPatientsCovered.R:51:3', 'test-plotProportionOfPatientsCovered.R:92:3', 'test-plotTreatment.R:2:3', 'test-plots.R:2:3', 'test-plots.R:92:3', 'test-plots.R:155:3', 'test-require.R:2:3', 'test-require.R:110:3', 'test-require.R:313:3', 'test-require.R:417:3', 'test-require.R:510:3', 'test-require.R:580:3', 'test-indication.R:2:3', 'test-indication.R:200:3', 'test-indication.R:364:3', 'test-indication.R:479:3', 'test-summariseProportionOfPatientsCovered.R:93:3', 'test-summariseProportionOfPatientsCovered.R:168:3', 'test-summariseProportionOfPatientsCovered.R:274:3', 'test-summariseProportionOfPatientsCovered.R:495:3', 'test-summariseProportionOfPatientsCovered.R:547:3', 'test-tables.R:2:3', 'test-tables.R:96:3', 'test-tables.R:219:3', 'test-tables.R:302:3', 'test-tables.R:393:3', 'test-tables.R:451:3' [ FAIL 0 | WARN 0 | SKIP 44 | PASS 105 ] > > proc.time() user system elapsed 2.92 0.32 109.76