Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(MeasurementDiagnostics)
  > 
  > test_check("MeasurementDiagnostics")
  Saving _problems/test-plotMeasurementValueAsConcept-3.R
  Saving _problems/test-plotMeasurementValueAsNumeric-3.R
  Saving _problems/test-tableMeasurementSummary-3.R
  Saving _problems/test-tableMeasurementValueAsConcept-3.R
  Saving _problems/test-tableMeasurementValueAsNumeric-3.R
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 0 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-plotMeasurementSummary.R:2:3',
    'test-summariseCohortMeasurementUse.R:2:3',
    'test-summariseCohortMeasurementUse.R:176:3',
    'test-summariseCohortMeasurementUse.R:282:3',
    'test-summariseCohortMeasurementUse.R:353:3',
    'test-summariseMeasurementUse.R:2:3', 'test-summariseMeasurementUse.R:211:3',
    'test-summariseMeasurementUse.R:276:3',
    'test-summariseMeasurementUse.R:447:3',
    'test-summariseMeasurementUse.R:491:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plotMeasurementValueAsConcept.R:3:3'): plotMeasurementValueAsConcept 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. ├─MeasurementDiagnostics:::copyCdm(cdm) at test-plotMeasurementValueAsConcept.R:3:3
    2. │ ├─CDMConnector::dbSource(con = connection(), writeSchema = writeSchema()) at ./setup.R:36:5
    3. │ │ └─methods::is(con, "Pool")
    4. │ └─MeasurementDiagnostics:::connection()
    5. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./setup.R:12:3
    6. ├─base::loadNamespace(x)
    7. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    8. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   10. │ └─base::stop(cond)
   11. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-plotMeasurementValueAsNumeric.R:3:3'): plotMeasurementValueAsNumber 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. ├─MeasurementDiagnostics:::copyCdm(cdm) at test-plotMeasurementValueAsNumeric.R:3:3
    2. │ ├─CDMConnector::dbSource(con = connection(), writeSchema = writeSchema()) at ./setup.R:36:5
    3. │ │ └─methods::is(con, "Pool")
    4. │ └─MeasurementDiagnostics:::connection()
    5. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./setup.R:12:3
    6. ├─base::loadNamespace(x)
    7. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    8. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   10. │ └─base::stop(cond)
   11. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-tableMeasurementSummary.R:3:3'): check that it 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. ├─MeasurementDiagnostics:::copyCdm(cdm) at test-tableMeasurementSummary.R:3:3
    2. │ ├─CDMConnector::dbSource(con = connection(), writeSchema = writeSchema()) at ./setup.R:36:5
    3. │ │ └─methods::is(con, "Pool")
    4. │ └─MeasurementDiagnostics:::connection()
    5. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./setup.R:12:3
    6. ├─base::loadNamespace(x)
    7. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    8. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   10. │ └─base::stop(cond)
   11. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-tableMeasurementValueAsConcept.R:3:3'): table 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. ├─MeasurementDiagnostics:::copyCdm(cdm) at test-tableMeasurementValueAsConcept.R:3:3
    2. │ ├─CDMConnector::dbSource(con = connection(), writeSchema = writeSchema()) at ./setup.R:36:5
    3. │ │ └─methods::is(con, "Pool")
    4. │ └─MeasurementDiagnostics:::connection()
    5. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./setup.R:12:3
    6. ├─base::loadNamespace(x)
    7. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    8. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   10. │ └─base::stop(cond)
   11. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-tableMeasurementValueAsNumeric.R:3:3'): table 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. ├─MeasurementDiagnostics:::copyCdm(cdm) at test-tableMeasurementValueAsNumeric.R:3:3
    2. │ ├─CDMConnector::dbSource(con = connection(), writeSchema = writeSchema()) at ./setup.R:36:5
    3. │ │ └─methods::is(con, "Pool")
    4. │ └─MeasurementDiagnostics:::connection()
    5. │   └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./setup.R:12:3
    6. ├─base::loadNamespace(x)
    7. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    8. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   10. │ └─base::stop(cond)
   11. └─base (local) `<fn>`(`<pckgNtFE>`)
  
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted