Running ‘testthat.R’ [5s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(Eunomia)
  > test_check("Eunomia")
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-DBI-2.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-DBI-13.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-EunomiaData-9.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/Synthea27Nj/Synthea27Nj_5.4.zip'
  Saving _problems/test-EunomiaData-14.R
    adding: home/hornik/tmp/scratch/RtmpBFTgxc/file14c47440f86c57somefile.txt (stored 0%)
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-9.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-13.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-21.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-30.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-36.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-47.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-54.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Saving _problems/test-basic-75.R
  [ FAIL 12 | WARN 12 | SKIP 0 | PASS 5 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-DBI.R:2:3'): dbConnect works with sqlite ───────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(...) at test-DBI.R:2:3
   2. ├─DBI::dbConnect(...)
   3. │ └─RSQLite (local) .local(drv, ...)
   4. │   └─base::stopifnot(length(dbname) == 1, !is.na(dbname))
   5. └─Eunomia::getDatabaseFile(...)
   6.   └─Eunomia::downloadEunomiaData(...)
   7.     └─utils::download.file(...)
  ── Error ('test-DBI.R:13:3'): dbConnect works with duckdb ──────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(...) at test-DBI.R:13:3
   2. ├─DBI::dbConnect(...)
   3. │ └─duckdb (local) .local(drv, ...)
   4. │   └─duckdb:::path_normalize(dbdir)
   5. └─Eunomia::getDatabaseFile(...)
   6.   └─Eunomia::downloadEunomiaData(...)
   7.     └─utils::download.file(...)
  ── Error ('test-EunomiaData.R:9:3'): Overwrite test for downloadEunomiaData ────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. └─Eunomia::downloadEunomiaData(datasetName = "GiBleed", overwrite = T) at test-EunomiaData.R:9:3
   2.   └─utils::download.file(...)
  ── Error ('test-EunomiaData.R:14:3'): Eunomia works with 5.4 ───────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/Synthea27Nj/Synthea27Nj_5.4.zip'
  Backtrace:
      ▆
   1. └─Eunomia::getDatabaseFile(...) at test-EunomiaData.R:14:3
   2.   └─Eunomia::downloadEunomiaData(...)
   3.     └─utils::download.file(...)
  ── Failure ('test-basic.R:9:3'): Dataset not downloaded and not loaded into SQLite ──
  `getDatabaseFile(datasetName = "GiBleed")` threw an error.
  Message: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-basic.R:9:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Eunomia::getDatabaseFile(datasetName = "GiBleed")
   7.   └─Eunomia::downloadEunomiaData(...)
   8.     └─utils::download.file(...)
  ── Error ('test-basic.R:13:3'): Dataset downloaded but not loaded into SQLite ──
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. └─Eunomia::downloadEunomiaData(datasetName = "GiBleed") at test-basic.R:13:3
   2.   └─utils::download.file(...)
  ── Error ('test-basic.R:21:3'): Get connection details ─────────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. └─Eunomia::getEunomiaConnectionDetails() at test-basic.R:21:3
   2.   └─Eunomia::getDatabaseFile(...)
   3.     └─Eunomia::downloadEunomiaData(...)
   4.       └─utils::download.file(...)
  ── Error ('test-basic.R:30:3'): Connect ────────────────────────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. ├─DatabaseConnector::connect(getEunomiaConnectionDetails()) at test-basic.R:30:3
   2. └─Eunomia::getEunomiaConnectionDetails()
   3.   └─Eunomia::getDatabaseFile(...)
   4.     └─Eunomia::downloadEunomiaData(...)
   5.       └─utils::download.file(...)
  ── Error ('test-basic.R:36:3'): Table names and column names case ──────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. ├─DatabaseConnector::connect(getEunomiaConnectionDetails()) at test-basic.R:36:3
   2. └─Eunomia::getEunomiaConnectionDetails()
   3.   └─Eunomia::getDatabaseFile(...)
   4.     └─Eunomia::downloadEunomiaData(...)
   5.       └─utils::download.file(...)
  ── Error ('test-basic.R:47:3'): Query ──────────────────────────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. ├─DatabaseConnector::connect(getEunomiaConnectionDetails()) at test-basic.R:47:3
   2. └─Eunomia::getEunomiaConnectionDetails()
   3.   └─Eunomia::getDatabaseFile(...)
   4.     └─Eunomia::downloadEunomiaData(...)
   5.       └─utils::download.file(...)
  ── Error ('test-basic.R:54:3'): Cohort construction ────────────────────────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. └─Eunomia::getEunomiaConnectionDetails() at test-basic.R:54:3
   2.   └─Eunomia::getDatabaseFile(...)
   3.     └─Eunomia::downloadEunomiaData(...)
   4.       └─utils::download.file(...)
  ── Error ('test-basic.R:75:3'): deprecated arguments in createCohorts ──────────
  Error in `utils::download.file(url = paste(baseUrl, datasetName, zipName, sep = "/"), destfile = file.path(pathToData, zipName))`: cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
      ▆
   1. └─Eunomia::getEunomiaConnectionDetails() at test-basic.R:75:3
   2.   └─Eunomia::getDatabaseFile(...)
   3.     └─Eunomia::downloadEunomiaData(...)
   4.       └─utils::download.file(...)
  
  [ FAIL 12 | WARN 12 | SKIP 0 | PASS 5 ]
  Error:
  ! Test failures.
  Execution halted