Running ‘testthat.R’ [6s/17s]
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://raw.githubusercontent.com/darwin-eu/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6848518 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  Dataset already exists (/tmp/RtmpUky8qB/working_dir/RtmpeZgBRy/file86a267510fd9f/GiBleed_5.3.zip). Specify overwrite=T to overwrite existing zip archive.[ FAIL 2 | WARN 0 | SKIP 84 | PASS 14 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • "Databricks" %in% odbc::odbcListDataSources()$name is not TRUE (7)
  • "OracleODBC-19" %in% odbc::odbcListDataSources()$name is not TRUE (3)
  • "OracleODBC-19" %in% odbc::odbcListDrivers() is not TRUE (1)
  • "Snowflake" %in% odbc::odbcListDataSources()$name is not TRUE (3)
  • Capr cannot be loaded (1)
  • CirceR cannot be loaded (3)
  • On CRAN (4)
  • Sys.getenv("CDM5_POSTGRESQL_USER") == "" is TRUE (9)
  • Sys.getenv("CDM5_REDSHIFT_USER") == "" is TRUE (8)
  • Sys.getenv("CDM5_SQL_SERVER_USER") == "" is TRUE (9)
  • Sys.getenv("LOCAL_POSTGRESQL_USER") == "" is TRUE (3)
  • Sys.getenv("REDSHIFT_USER") == "" is TRUE (1)
  • Sys.getenv("SNOWFLAKE_USER") == "" is TRUE (1)
  • duckdb cannot be loaded (22)
  • failing test (1)
  • rlang::is_installed("duckdb") is not TRUE (4)
  • rlang::is_installed("duckdb", version = "0.6") is not TRUE (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cdm.R:639:3'): snapshot works when cdm_source or vocabulary tables are empty ──
  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-cdm.R:639:2
   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-dateadd.R:380:3'): test year, month, day functionality ─────────
  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-dateadd.R:380:2
   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 84 | PASS 14 ]
  Error: Test failures
  Execution halted