Running ‘testthat.R’ [17s/13s]
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(CDMConnector)
  > 
  > test_check("CDMConnector")
  Starting 2 test processes
  [ FAIL 25 | WARN 0 | SKIP 15 | PASS 28 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • Capr cannot be loaded (1): 'test-db-generateCohortSet.R:158:3'
  • CirceR cannot be loaded (3): 'test-db-generateConceptCohortSet.R:201:5',
    'test-db-generateCohortSet.R:71:5', 'test-db-recordCohortAttrition.R:132:3'
  • TreatmentPatterns cannot be loaded (1): 'test-db-generateCohortSet.R:208:3'
  • duckdb cannot be loaded (4): 'test-db-DBI.R:82:5',
    'test-db-generateCohortSet.R:82:3', 'test-db-utils.R:85:3',
    'test-db-utils.R:109:3'
  • failing test (3): 'test-db-dateadd.R:125:3', 'test-readCohortSet.R:3:3',
    'test-readCohortSet.R:22:3'
  • manual test (3): 'test-Eunomia.R:2:3', 'test-db-copy_cdm_to.R:62:3',
    'test-db-generateCohortSet.R:190:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cdm_tranformations.R:2:3'): cdm_sample works ───────────────────
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-cdm_tranformations.R:2:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-casing.R:29:5'): duckdb - lowercase columns ─────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-casing.R:29:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   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-db-cdm.R:54:5'): duckdb - cdm_from_con ─────────────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-cdm.R:54:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   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-db-cdm.R:66:3'): Uppercase tables are stored as lowercase in cdm ──
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-cdm.R:66:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-cohortTransformations.R:256:5'): duckdb - cohort_collapse ───
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-cohortTransformations.R:256:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-cohort_ddl.R:33:5'): duckdb - createCohortTables ────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-cohort_ddl.R:33:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-compute.R:81:5'): duckdb - compute_query ────────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-compute.R:81:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-compute.R:96:3'): message does not duplicate when prefix is 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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-compute.R:96:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-copy_cdm_to.R:29:5'): duckdb - copy_cdm_to ──────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-copy_cdm_to.R:29:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-copy_cdm_to.R:39:3'): duckdb - copy_cdm_to without prefix ───
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-copy_cdm_to.R:39:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-dateadd.R:109:5'): duckdb - date functions ──────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-dateadd.R:109:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-example-analysis.R:202:5'): duckdb - checking common usage ──
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-example-analysis.R:202:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-generateConceptCohortSet.R:213:3'): missing domains produce warning ──
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-generateConceptCohortSet.R:213:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-generateCohortSet.R:259:3'): newGeneratedCohortSet works with prefix ──
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-generateCohortSet.R:259:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-newGeneratedCohortSet.R:91:5'): duckdb - recordCohortAttrition ──
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-newGeneratedCohortSet.R:91:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-newGeneratedCohortSet.R:104:3'): error in newGeneratedCohortSet if cohort_ref has not been computed ──
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-db-newGeneratedCohortSet.R:104:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-db-summariseQuantile.R:59:5'): duckdb - summariseQuantile ──────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-summariseQuantile.R:59:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-recordCohortAttrition.R:122:5'): duckdb - recordCohortAttrition ──
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-recordCohortAttrition.R:122:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-temp-tables.R:49:5'): duckdb - temp_tables ──────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-temp-tables.R:49:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-utils.R:65:5'): duckdb - inSchema ───────────────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-utils.R:65:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-db-verify_write_schema.R:19:5'): duckdb - verify_write_access ──
  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. ├─CDMConnector:::get_connection(dbtype) at test-db-verify_write_schema.R:19:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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-local_cdm.R:3:3'): assertTables works with local cdms ──────────
  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. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-local_cdm.R:3:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-memory-issue.R:7:3'): memory leak does not happen ──────────────
  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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-memory-issue.R:7:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-pool.R:3:3'): pool connections work ────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `eunomiaDir(datasetName = dataset_name, cdmVersion = cdm_version, 
      databaseFile = database_file)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. ├─pool::dbPool(drv = duckdb::duckdb(), dbdir = eunomia_dir()) at test-pool.R:3:3
   2. └─CDMConnector::eunomia_dir()
   3.   └─CDMConnector::eunomiaDir(...)
   4.     └─rlang::check_installed("duckdb")
  ── Error ('test-zzz-DBI.R:59:5'): duckdb - dbi ─────────────────────────────────
  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. ├─CDMConnector:::get_connection(dbtype) at test-zzz-DBI.R:59:5
   2. │ └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at tests/testthat/setup.R:15:5
   3. ├─base::loadNamespace(x) at tests/testthat/setup.R:15:5
   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 25 | WARN 0 | SKIP 15 | PASS 28 ]
  Error: Test failures
  Execution halted