Running ‘testthat.R’ [24s/18s]
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(TreatmentPatterns)
  > 
  > test_check("TreatmentPatterns")
  Starting 2 test processes
  [ FAIL 2 | WARN 0 | SKIP 35 | PASS 50 ]
  
  ══ Skipped tests (35) ══════════════════════════════════════════════════════════
  • On CRAN (35): 'test-CDMInterfaceDBC.R:8:3', 'test-CDMInterfaceDBC.R:27:3',
    'test-CDMInterfaceDBC.R:40:3', 'test-CDMInterfaceDBC.R:67:3',
    'test-CDMInterfaceDBC.R:93:3', 'test-CDMInterfaceDBC.R:129:3',
    'test-PathwayConstructor.R:5:3', 'test-PathwayConstructor.R:20:3',
    'test-PathwayConstructor.R:38:3', 'test-PathwayConstructor.R:59:3',
    'test-PathwayConstructor.R:76:3', 'test-computePathways.R:9:3',
    'test-computePathways.R:33:3', 'test-computePathways.R:56:3',
    'test-computePathways.R:78:3', 'test-computePathways.R:125:3',
    'test-computePathways.R:143:3', 'test-computePathways.R:161:3',
    'test-computePathways.R:207:3', 'test-computePathways.R:225:3',
    'test-computePathways.R:265:3', 'test-computePathways.R:283:3',
    'test-computePathways.R:301:3', 'test-executeTreatmentPatterns.R:9:3',
    'test-executeTreatmentPatterns.R:47:3', 'test-export.R:29:3',
    'test-export.R:76:3', 'test-export.R:125:3', 'test-export.R:168:3',
    'test-export.R:209:3', 'test-export.R:282:3', 'test-export.R:327:3',
    'test-export.R:373:3', 'test-export.R:414:3', 'test-export.R:453:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CDMInterfaceCDMC.R:8:1'): (code run outside of `test_that()`) ──
  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-CDMInterfaceCDMC.R:8:1
   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-computePathways.R:357:3'): identical treatment timeframe ───────
  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 = CDMConnector::eunomia_dir()) at test-computePathways.R:357: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>`)
  
  [ FAIL 2 | WARN 0 | SKIP 35 | PASS 50 ]
  Error: Test failures
  Execution halted