- using R Under development (unstable) (2025-11-05 r88988)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 21.1.5
flang version 21.1.5
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘CohortExplorer/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘CohortExplorer’ version ‘0.1.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘CohortExplorer’ can be installed ... [14s/65s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘CreateCohortExplorerApp.R’
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s/19s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/14s] OK
- checking whether the package can be unloaded cleanly ... [3s/13s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/20s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/24s] OK
- checking loading without being on the library search path ... [4s/20s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [19s/110s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/25s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [16s/133s] ERROR
Running ‘testOracle.R’ [5s/22s]
Running ‘testPostgres.R’ [5s/80s]
Running ‘testRedshift.R’
Running ‘testSqlServer.R’ [5s/25s]
Running the tests in ‘tests/testPostgres.R’ failed.
Complete output:
> library(testthat)
> options(dbms = "postgresql")
> test_check("CohortExplorer")
Loading required package: CohortExplorer
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/RtmpZNVmkw/working_dir/RtmpoMxv15/jdbcDrivers1b419a4a14e9ce'` 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/CohortExplorer.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("CohortExplorer")
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(dbms, pathToDriver = jdbcDriverFolder) at tests/testthat/setup.R:13: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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... [7s/22s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE