Running ‘testthat.R’ [5s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("CohortMethod")
  Loading required package: CohortMethod
  Loading required package: DatabaseConnector
  Loading required package: Cyclops
  Loading required package: FeatureExtraction
  Loading required package: Andromeda
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  attempting to download GiBleed
  trying URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `utils::download.file()`:
  ! cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip'
  Backtrace:
       ▆
    1. ├─testthat::test_check("CohortMethod")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─Eunomia::getEunomiaConnectionDetails() at ./setup.R:6:3
   15. │                         └─Eunomia::getDatabaseFile(...)
   16. │                           └─Eunomia::downloadEunomiaData(...)
   17. │                             └─utils::download.file(...)
   18. └─base::.handleSimpleError(...)
   19.   └─testthat (local) h(simpleError(msg, call))
   20.     └─cli::cli_abort(...)
   21.       └─rlang::abort(...)
  Warning message:
  In utils::download.file(url = paste(baseUrl, datasetName, zipName,  :
    cannot open URL 'https://raw.githubusercontent.com/OHDSI/EunomiaDatasets/main/datasets/GiBleed/GiBleed_5.3.zip': HTTP status was '429 Unknown Error'
  Execution halted