Running ‘testthat.R’ [41s/215s]
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'
  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 4.0 MB
  
  Saving _problems/test-EunomiaData-9.R
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/Synthea27Nj/Synthea27Nj_5.4.zip'
  Content type 'application/zip' length 3351707 bytes (3.2 MB)
  ==================================================
  downloaded 3.2 MB
  
    adding: tmp/RtmpaCjX2N/file23ce893dea3e2asomefile.txt (stored 0%)
  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 3.5 MB
  
  Saving _problems/test-basic-17.R
  Cohorts created in table main.cohort
  Cohorts created in table main.cohort
  [ FAIL 2 | WARN 5 | SKIP 0 | PASS 67 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── 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))`: download from 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip' failed
  Backtrace:
      ▆
   1. └─Eunomia::downloadEunomiaData(datasetName = "GiBleed", overwrite = T) at test-EunomiaData.R:9:3
   2.   └─utils::download.file(...)
  ── Failure ('test-basic.R:17:3'): Dataset downloaded but not loaded into SQLite ──
  `getDatabaseFile(datasetName = "GiBleed")` threw an error.
  Message: download from 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip' failed
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-basic.R:17: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(...)
  
  [ FAIL 2 | WARN 5 | SKIP 0 | PASS 67 ]
  Error:
  ! Test failures.
  Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted