CRAN Package Check Results for Package CohortCosts

Last updated on 2026-09-04 08:50:52 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-gcc 0.6.1 4.12 56.30 60.42 OK
r-devel-linux-x86_64-fedora-clang 0.6.1 5.00 34.87 39.87 ERROR
r-devel-linux-x86_64-fedora-gcc 0.6.1 54.64 OK
r-devel-windows-x86_64 0.6.1 9.00 89.00 98.00 OK
r-patched-linux-x86_64 0.6.1 5.99 74.65 80.64 OK
r-release-macos-arm64 0.6.1 1.00 21.00 22.00 OK
r-release-macos-x86_64 0.6.1 4.00 73.00 77.00 OK
r-release-windows-x86_64 0.6.1 8.00 84.00 92.00 OK
r-oldrel-macos-arm64 0.6.1 2.00 25.00 27.00 OK
r-oldrel-macos-x86_64 0.6.1 4.00 79.00 83.00 OK
r-oldrel-windows-x86_64 0.6.1 9.00 109.00 118.00 OK

Check Details

Version: 0.6.1
Check: tests
Result: 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) `<fn>`(`<pckgNtFE>`) ── 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) `<fn>`(`<pckgNtFE>`) ── 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) `<fn>`(`<pckgNtFE>`) [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang