Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DrugExposureDiagnostics)
  > 
  > test_check("DrugExposureDiagnostics")
  Saving _problems/test-CheckDrugSig-16.R
  Saving _problems/test-CheckDrugSig-41.R
  Saving _problems/test-CheckVerbatimEndDate-17.R
  Saving _problems/test-CheckVerbatimEndDate-42.R
  Saving _problems/test-GetDrugRecords-57.R
  Saving _problems/test-GetDrugRecords-84.R
  Saving _problems/test-MockDrugExposure-2.R
  Saving _problems/test-MockDrugExposure-111.R
  Saving _problems/test-MockDrugExposure-144.R
  Saving _problems/test-MockDrugExposure-165.R
  Saving _problems/test-MockDrugExposure-179.R
  Saving _problems/test-MockDrugExposure-192.R
  
  Attaching package: 'plotly'
  
  The following object is masked from 'package:ggplot2':
  
      last_plot
  
  The following object is masked from 'package:stats':
  
      filter
  
  The following object is masked from 'package:graphics':
  
      layout
  
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Saving _problems/test-ShinyApp-8.R
  Saving _problems/test-SummariseChecks-216.R
  Saving _problems/test-SummariseChecks-226.R
  Saving _problems/test-checkDaysSupply-18.R
  Saving _problems/test-checkDaysSupply-45.R
  Saving _problems/test-checkDrugDose-90.R
  Saving _problems/test-checkDrugExposureDuration-45.R
  Saving _problems/test-checkDrugExposureDuration-63.R
  Saving _problems/test-checkDrugMissings-45.R
  Saving _problems/test-checkDrugMissings-86.R
  Saving _problems/test-checkDrugQuantity-27.R
  Saving _problems/test-checkDrugQuantity-39.R
  Saving _problems/test-checkDrugRoutes-45.R
  Saving _problems/test-checkDrugSourceConcepts-45.R
  Saving _problems/test-checkDrugTypes-45.R
  Saving _problems/test-checkTimeBetween-25.R
  Saving _problems/test-checkTimeBetween-37.R
  Saving _problems/test-executeChecks-29.R
  Saving _problems/test-executeChecks-61.R
  Saving _problems/test-executeChecks-82.R
  Saving _problems/test-executeChecks-99.R
  Saving _problems/test-executeChecks-127.R
  Saving _problems/test-executeChecks-143.R
  Saving _problems/test-executeChecks-180.R
  Saving _problems/test-executeChecks-204.R
  Saving _problems/test-executeChecks-219.R
  Saving _problems/test-executeChecks-245.R
  Saving _problems/test-executeChecks-272.R
  Saving _problems/test-executeChecks-329.R
  Saving _problems/test-executeChecks-344.R
  Saving _problems/test-executeChecks-355.R
  Saving _problems/test-executeChecks-368.R
  Saving _problems/test-executeChecks-384.R
  Saving _problems/test-executeChecks-427.R
  Time taken: 0 minutes and 0 seconds
  testMessage
  Saving _problems/test-utils-67.R
  [ FAIL 47 | WARN 48 | SKIP 5 | PASS 145 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • Skipping (1): 'test-shiny.R:2:3'
  • Sys.getenv("TESTDB_USER999") == "" is TRUE (1): 'test-SyntheaSqlServer.R:5:3'
  • does not work with latest omopgenerics (3): 'test-runBenchmark.R:2:3',
    'test-runBenchmark.R:36:3', 'test-runBenchmark.R:47:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CheckDrugSig.R:16:3'): checkDrugSig overall ────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-CheckDrugSig.R:16:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-CheckDrugSig.R:12:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-CheckDrugSig.R:41:3'): checkDrugSig byConcept ──────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-CheckDrugSig.R:41:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-CheckDrugSig.R:12:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-CheckVerbatimEndDate.R:17:3'): checkVerbatimEndDate overall ────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-CheckVerbatimEndDate.R:17:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-CheckVerbatimEndDate.R:13:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-CheckVerbatimEndDate.R:42:3'): checkVerbatimEndDate byConcept ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-CheckVerbatimEndDate.R:42:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-CheckVerbatimEndDate.R:13:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-GetDrugRecords.R:57:3'): getDrugRecords ────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData(ingredientId) at test-GetDrugRecords.R:57:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(...) at test-GetDrugRecords.R:50:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-GetDrugRecords.R:84:3'): getDrugRecords invalid inputs ─────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData(ingredientId) at test-GetDrugRecords.R:84:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(...) at test-GetDrugRecords.R:50:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:2:3'): check working example with defaults ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-MockDrugExposure.R:2:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:111:3'): check working example with drug_strength ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(drug_strength = drug_strength) at test-MockDrugExposure.R:111:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:144:3'): check working example with drug drug_exposure ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(drug_exposure = drug_exposure) at test-MockDrugExposure.R:144:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:165:3'): check working example with drug_exposure options ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(...) at test-MockDrugExposure.R:165:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:176:3'): check working example with drug_strength default options ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(...) at test-MockDrugExposure.R:176:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-MockDrugExposure.R:192:3'): check working example with drug_strength num_denom only ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(amount_val = NA, amount_unit = NA) at test-MockDrugExposure.R:192:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-ShinyApp.R:8:3'): ShinyApp ─────────────────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-ShinyApp.R:8:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-SummariseChecks.R:216:3'): summariseChecks partial inputs with only empty ingredient: summary of missing and quantity and dose ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-SummariseChecks.R:216:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-SummariseChecks.R:226:3'): summariseChecks partial inputs with combination of not empty and empty ingredient: summary of missing and quantity and dose ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-SummariseChecks.R:226:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDaysSupply.R:18:3'): check days supply overall ────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkDaysSupply.R:18:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDaysSupply.R:14:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDaysSupply.R:45:3'): check days supply by Concept ─────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkDaysSupply.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDaysSupply.R:14:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugDose.R:90:3'): checkDrugDose overall ──────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkDrugDose.R:90:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(...) at test-checkDrugDose.R:49:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugExposureDuration.R:45:3'): summariseDrugExposureDuration test overall ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugExposureDuration.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugExposureDuration.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugExposureDuration.R:63:3'): summariseDrugExposureDuration test by concept ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugExposureDuration.R:63:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugExposureDuration.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugMissings.R:45:3'): getDrugMissings overall ────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugMissings.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugMissings.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugMissings.R:86:3'): getDrugMissings byConcept ──────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugMissings.R:86:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugMissings.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugQuantity.R:27:3'): check summary calculation overall ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkDrugQuantity.R:27:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugQuantity.R:23:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugQuantity.R:39:3'): check summary calculation by Concept ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkDrugQuantity.R:39:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugQuantity.R:23:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugRoutes.R:45:3'): getDrugRoutes ────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugRoutes.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugRoutes.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugSourceConcepts.R:45:3'): getDrugSourceConcepts ────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugSourceConcepts.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugSourceConcepts.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkDrugTypes.R:45:3'): getDrugTypes ──────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getTestData() at test-checkDrugTypes.R:45:3
   2. │ └─DrugExposureDiagnostics::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkDrugTypes.R:41:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkTimeBetween.R:25:3'): check summary calculation overall ───
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkTimeBetween.R:25:3
   2. │ └─DrugExposureDiagnostics:::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkTimeBetween.R:21:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-checkTimeBetween.R:37:3'): check summary calculation by concept ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics (local) getInputDb() at test-checkTimeBetween.R:37:3
   2. │ └─DrugExposureDiagnostics:::mockDrugExposure(ingredient_drug_records = ingredient_drug_records) at test-checkTimeBetween.R:21:3
   3. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   4. ├─base::loadNamespace(x)
   5. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   7. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   8. │ └─base::stop(cond)
   9. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:29:3'): execute default checks, default ingredient, verbose ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:29:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:61:3'): execute all checks, given ingredient ───
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:61:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:82:3'): execute some checks, given ingredient ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:82:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:99:3'): execute checks for given exposureTypeId ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure(drug_exposure_size = 100) at test-executeChecks.R:99:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:127:3'): execute checks: expected errors ───────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:127:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:143:3'): each check ────────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:143:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:180:3'): each check: expected errors ───────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:180:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:204:3'): get number of Days_supply that are incorrect ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:204:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:219:3'): sampling ──────────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:219:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:245:3'): summary ───────────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:245:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:272:3'): subset on specific concepts ───────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:272:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:329:3'): obscuring results by minCellCount ─────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:329:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:344:3'): use tablePrefix ───────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:344:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:355:3'): empty drug_strength table gives an error ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:355:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:368:3'): results from multiple ingredients should be joined also if there is one in between that doesn't exist ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:368:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:384:3'): sampleSize is null, no sampling must take place, all data from ingredient_drug_records must be used ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:384:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-executeChecks.R:427:3'): package version and name are included in the results ──
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-executeChecks.R:427:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-utils.R:67:3'): checkIsIngredient ──────────────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DrugExposureDiagnostics::mockDrugExposure() at test-utils.R:67:3
   2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:")
   3. ├─base::loadNamespace(x)
   4. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   6. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   7. │ └─base::stop(cond)
   8. └─base (local) `<fn>`(`<pckgNtFE>`)
  
  [ FAIL 47 | WARN 48 | SKIP 5 | PASS 145 ]
  Error:
  ! Test failures.
  Execution halted