Package check result: ERROR Check: tests, Result: ERROR Running ‘testthat.R’ [3s/3s] 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(CDMConnector) > > test_check("CDMConnector") trying URL 'https://example-data.ohdsi.dev/GiBleed.zip' Content type 'application/zip' length 6754786 bytes (6.4 MB) ================================================== downloaded 6.4 MB Download completed! [1] "CI tests not run on snowflake - duckdb package is not installed" i `EUNOMIA_DATA_FOLDER` set to: '/home/hornik/tmp/scratch/Rtmp6XYWrR/working_dir/RtmpUWvC8F'. trying URL 'https://example-data.ohdsi.dev/GiBleed.zip' Content type 'application/zip' length 6754786 bytes (6.4 MB) ================================================== downloaded 6.4 MB Download completed! [ FAIL 7 | WARN 0 | SKIP 39 | PASS 29 ] ══ Skipped tests (39) ══════════════════════════════════════════════════════════ • "duckdb" %in% dbToTest is not TRUE (1): 'test-04-db-generateConceptCohortSet.R:551:3' • Capr cannot be loaded (1): 'test-04-db-generateConceptCohortSet.R:577:3' • CirceR cannot be loaded (4): 'test-03-db-generateCohortSet.R:215:3', 'test-03-db-generateCohortSet.R:260:3', 'test-18-db-newGeneratedCohortSet.R:126:3', 'test-write_prefix_cohort_generation_snowflake.R:3:3' • On CRAN (6): 'test-04-db-generateConceptCohortSet.R:381:3', 'test-04-db-generateConceptCohortSet.R:399:3', 'test-04-db-generateConceptCohortSet.R:425:3', 'test-Eunomia.R:59:3', 'test-db-recordCohortAttrition.R:134:3', 'test-memory-issue.R:6:3' • TreatmentPatterns cannot be loaded (1): 'test-03-db-generateCohortSet.R:130:3' • arrow::write_parquet is failing (1): 'test-local_cdm.R:3:3' • duckdb cannot be loaded (18): 'test-02-db-cdm.R:56:3', 'test-02-db-cdm.R:185:3', 'test-03-db-generateCohortSet.R:179:3', 'test-06-db-compute.R:92:3', 'test-09-db-copy_cdm_to.R:40:3', 'test-11-cdm_tranformations.R:2:3', 'test-15-db-benchmarkCDMConnector.R:19:5', 'test-18-db-newGeneratedCohortSet.R:103:3', 'test-18-db-newGeneratedCohortSet.R:180:3', 'test-Eunomia.R:41:3', 'test-db-benchmarkCDMConnector.R:19:5', 'test-db-utils.R:85:3', 'test-db-utils.R:111:3', 'test-deprecations.R:2:3', 'test-pool.R:2:3', 'test-validate.R:2:3', 'test-validate.R:17:3', 'test-validate.R:77:3' • failing test (1): 'test-07-db-dateadd.R:126:3' • manual test (6): 'test-02-db-cdm.R:234:3', 'test-03-db-generateCohortSet.R:111:3', 'test-03-db-generateCohortSet.R:248:3', 'test-09-db-copy_cdm_to.R:62:3', 'test-Eunomia.R:2:3', 'test-db-write_schema_with_database.R:5:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-02-db-cdm.R:225:3'): write_schema argument specification and cdm_disconnect 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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-02-db-cdm.R:225: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-04-db-generateConceptCohortSet.R:522:3'): invalid cdm records are ignored in generateConceptCohortSet ── 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()) at test-04-db-generateConceptCohortSet.R:522: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) ``(``) ── Failure ('test-Eunomia.R:81:5'): requireEunomia ───────────────────────────── Expected `con <- duckdb::dbConnect(duckdb::duckdb(), eunomiaDir())` to run without any errors. i Actually got a with text: there is no package called 'duckdb' Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-Eunomia.R:77:3 2. │ └─base::force(code) 3. └─testthat::expect_no_error(...) at test-Eunomia.R:81:5 ── Error ('test-Eunomia.R:82:5'): requireEunomia ─────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'duckdb' Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-Eunomia.R:77:3 2. │ └─base::force(code) 3. └─base::loadNamespace(x) at test-Eunomia.R:82:5 4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 5. └─base (local) withOneRestart(expr, restarts[[1L]]) 6. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-cohort-reconnect.R:5:3'): cohort codelist attributes are preserved ── 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(eunomia_dir())) at test-cohort-reconnect.R:5: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-local_cdm.R:41:3'): softValidation is passed 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. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-local_cdm.R:41: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-write_prefix.r:2:3'): write_prefix works with cdm_from_con ───── 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-write_prefix.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) ``(``) [ FAIL 7 | WARN 0 | SKIP 39 | PASS 29 ] Error: Test failures Execution halted