Running ‘testthat.R’ [75s/268s]
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'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/Synthea27Nj/Synthea27Nj_5.4.zip'
    adding: tmp/Rtmp2qzMJU/file328e8f4c5d37c6somefile.txt (stored 0%)
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6861852 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6861852 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6861852 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6861852 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  Cohorts created in table main.cohort
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Content type 'application/zip' length 6861852 bytes (6.5 MB)
  ==================================================
  downloaded 6.5 MB
  
  Cohorts created in table main.cohort
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 56 ]
  
  ══ 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(...)
  
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 56 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted