Running ‘testOracle.R’ [5s/15s]
  Running ‘testPostgres.R’ [4s/73s]
  Running ‘testRedshift.R’
  Running ‘testSqlServer.R’ [5s/15s]
Running the tests in ‘tests/testPostgres.R’ failed.
Complete output:
  > library(testthat)
  > options(dbms = "postgresql")
  > test_check("CohortPathways")
  Loading required package: CohortPathways
  Loading required package: DatabaseConnector
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  ************* Testing on postgresql *************
  Consider adding `DATABASECONNECTOR_JAR_FOLDER='/tmp/RtmpCyzXGV/working_dir/RtmpDgtzKJ/jdbcDrivers671cc3f4f5e66'` to /data/gannet/ripley/.Renviron and restarting R.
  trying URL 'https://jdbc.postgresql.org/download/postgresql-42.7.3.jar'
  Error in `FUN()`:
  ! In path: "/data/gannet/ripley/R/packages/tests-clang/CohortPathways.Rcheck/tests/testthat/setup.R"
  Caused by error in `download.file()`:
  ! cannot open URL 'https://jdbc.postgresql.org/download/postgresql-42.7.3.jar'
  Backtrace:
       ▆
    1. ├─testthat::test_check("CohortPathways")
    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(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─DatabaseConnector::downloadJdbcDrivers("postgresql", pathToDriver = jdbcDriverFolder) at tests/testthat/setup.R:18:3
   15. │                         └─utils::download.file(...)
   16. └─base::.handleSimpleError(...)
   17.   └─testthat (local) h(simpleError(msg, call))
   18.     └─rlang::abort(...)
  Warning message:
  In download.file(url = paste0(driverSource$baseUrl, driverSource$fileName),  :
    URL 'https://jdbc.postgresql.org/download/postgresql-42.7.3.jar': Timeout of 60 seconds was reached
  Execution halted