* using log directory ‘/data/localhost/ripley/R/packages/tests-clang/CohortUtilisation.Rcheck’ * using R Under development (unstable) (2026-09-15 r90540) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 23.1.1 flang version 23.1.1 * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-09-16 05:23:37 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘CohortUtilisation/DESCRIPTION’ ... OK * this is package ‘CohortUtilisation’ version ‘0.6.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: 'duckdb' * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘CohortUtilisation’ can be installed ... [6s/18s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/CohortUtilisation-00install.html' for details. * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s/22s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... NONE * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... ERROR Running ‘testthat.R’ Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(CohortUtilisation) > > test_check("CohortUtilisation") Attaching package: 'omopgenerics' The following object is masked from 'package:stats': filter 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 Attaching package: 'dbplyr' The following objects are masked from 'package:dplyr': ident, sql, sql_escape_ident, sql_escape_string Saving _problems/test-add-emergency-2.R Saving _problems/test-add-emergency-12.R Saving _problems/test-add-emergency-43.R Saving _problems/test-add-emergency-73.R Saving _problems/test-add-emergency-92.R Saving _problems/test-add-inpatients-2.R Saving _problems/test-add-inpatients-13.R Saving _problems/test-add-inpatients-43.R Saving _problems/test-add-inpatients-66.R Saving _problems/test-add-inpatients-100.R Saving _problems/test-add-inpatients-119.R Saving _problems/test-add-outpatient-2.R Saving _problems/test-add-outpatient-12.R Saving _problems/test-add-outpatient-39.R Saving _problems/test-add-outpatient-72.R Saving _problems/test-add-prescriptions-2.R Saving _problems/test-add-prescriptions-31.R Saving _problems/test-add-procedures-2.R Saving _problems/test-add-procedures-27.R Saving _problems/test-add-visits-2.R Saving _problems/test-add-visits-13.R Saving _problems/test-add-visits-58.R Saving _problems/test-add-visits-76.R Saving _problems/test-add-visits-108.R Saving _problems/test-compute-episodes-2.R Saving _problems/test-compute-episodes-28.R Saving _problems/test-hospitalizations-2.R Saving _problems/test-summarise-utilization-2.R Saving _problems/test-summarise-utilization-30.R [ FAIL 29 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-add-emergency.R:2:3'): addEmergencyCare validates input arguments correctly ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-emergency.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-emergency.R:12:3'): addEmergencyCare detects emergency encounters via visit concept IDs and provider specialties ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-emergency.R:12:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-emergency.R:43:3'): addEmergencyCare stratifies by granular specialty ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-emergency.R:43:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-emergency.R:73:3'): addEmergency and addEmergencyVisits aliases work identically ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-emergency.R:73:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-emergency.R:92:3'): addEmergencyCare supports infinite and NA windows ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-emergency.R:92:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:2:3'): addInpatients validates input arguments correctly ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:13:3'): addInpatients computes admissions, LOS, ICU stays, and readmissions ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:13:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:43:3'): addInpatients detects ICU stays via provider icuSpecialtyConceptIds ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:43:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:66:3'): addInpatients computes granular specialty breakdowns ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:66:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:100:3'): addHospitalizations and addInpatient backward-compatibility aliases work identically ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:100:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-inpatients.R:119:3'): addInpatients supports infinite and NA window bounds without case mismatch ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-inpatients.R:119:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-outpatient.R:2:3'): addOutpatientVisits validates input arguments ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-add-outpatient.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-outpatient.R:12:3'): addOutpatientVisits stratifies GP, Specialist, and Emergency visits ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-add-outpatient.R:12:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-outpatient.R:39:3'): addOutpatientVisits computes granular specialty breakdowns ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-add-outpatient.R:39:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-outpatient.R:72:3'): addOutpatientVisits supports infinite and NA window bounds ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-outpatient.R:72:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-prescriptions.R:2:3'): addPrescriptions extracts fills, days supply, PDC, and infusions ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-add-prescriptions.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-prescriptions.R:31:3'): addPrescriptions supports infinite and NA window bounds ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-prescriptions.R:31:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-procedures.R:2:3'): addProcedures extracts labs, imaging, and procedure occurrences ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-add-procedures.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-procedures.R:27:3'): addProcedures supports infinite and NA window bounds ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-procedures.R:27:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-visits.R:2:3'): addVisits validates input arguments correctly ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-visits.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-visits.R:13:3'): addVisits executes multi-setting visit enrichment (inpatient, outpatient, emergency) ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-visits.R:13:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-visits.R:58:3'): addVisits filters by specific settings ──── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-visits.R:58:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-visits.R:76:3'): addVisits unifies granular specialty stratification across settings ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-visits.R:76:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-add-visits.R:108:3'): addVisits supports infinite and NA window bounds with censorDate ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-add-visits.R:108:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-compute-episodes.R:2:3'): computeHospitalizationCohorts collapses stays and flags readmissions ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-compute-episodes.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-compute-episodes.R:28:3'): computeInfusionCohorts creates infusion episodes ── 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. ├─CohortUtilisation:::hermes_test_cdm() at test-compute-episodes.R:28:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-hospitalizations.R:2:3'): compute_hospitalization_cohorts collapses overlaps, contiguous visits, and finds readmissions ── 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(), ":memory:") at test-hospitalizations.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) ``(``) ── Error ('test-summarise-utilization.R:2:3'): summariseUtilization returns a valid summarised_result object ── 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. ├─CohortUtilisation:::hermesTestCdm() at test-summarise-utilization.R:2:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) ── Error ('test-summarise-utilization.R:30:3'): tableUtilization and plotUtilization format and plot 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. ├─CohortUtilisation:::hermesTestCdm() at test-summarise-utilization.R:30:3 2. │ └─DBI::dbConnect(duckdb::duckdb(), ":memory:") at ./helper-eunomia.R:8:3 3. ├─base::loadNamespace(x) at ./helper-eunomia.R:8:3 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) ``(``) [ FAIL 29 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR