* using log directory ‘/data/localhost/ripley/R/packages/tests-clang/CohortCosts.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:22:59 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘CohortCosts/DESCRIPTION’ ... OK * this is package ‘CohortCosts’ 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 ‘CohortCosts’ can be installed ... [5s/13s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/CohortCosts-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 ... [7s/17s] 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(CohortCosts) > > test_check("CohortCosts") 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-costs-2.R Saving _problems/test-add-costs-28.R Saving _problems/test-summarise-costs-2.R [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-add-costs.R:2:3'): addCosts extracts and aggregates domain and total costs ── 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. ├─CohortCosts:::hermes_test_cdm() at test-add-costs.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-costs.R:28:3'): addCosts 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. ├─CohortCosts:::hermesTestCdm() at test-add-costs.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-summarise-costs.R:2:3'): summariseCosts returns valid summarised_result and tableCosts formats it ── 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. ├─CohortCosts:::hermesTestCdm() at test-summarise-costs.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) ``(``) [ FAIL 3 | 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