Running ‘testthat.R’ [127s/233s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CohortGenerator)
  Loading required package: DatabaseConnector
  Loading required package: R6
  > 
  > test_check("CohortGenerator")
  attempting to download GiBleed
  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
  
  attempting to extract and load: /tmp/RtmpGn2PL7/working_dir/RtmpgZdwzr/GiBleed_5.3.zip to: /tmp/RtmpGn2PL7/working_dir/RtmpgZdwzr/GiBleed_5.3.sqlite
  Initiating cluster consisting only of main thread
  Generating cohort set took 2.38 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.77 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 0.24 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 0.87 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.97 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 0.33 secs
  Initiating cluster consisting only of main thread
  An error occurred while generating cohortName = Fail Cohort. Error: Error in `.createErrorReport()`:
  ! Error executing SQL:
  no such table: main.non_existant_table
  An error report has been created at  /data/gannet/ripley/R/packages/tests-devel/CohortGenerator.Rcheck/tests/testthat/errorReportSql.txt
  
  [1] "Create cohorts with stopOnError = FALSE"
  Initiating cluster consisting only of main thread
  An error occurred while generating cohortName = Fail Cohort. Error: Error in `.createErrorReport()`:
  ! Error executing SQL:
  no such table: main.non_existant_table
  An error report has been created at  /data/gannet/ripley/R/packages/tests-devel/CohortGenerator.Rcheck/tests/testthat/errorReportSql.txt
  
  Generating cohort set took 1.53 secs
  Initiating cluster consisting only of main thread
  An error occurred while generating cohortName = Fail Cohort. Error: Error in `.createErrorReport()`:
  ! Error executing SQL:
  no such table: main.non_existant_table
  An error report has been created at  /data/gannet/ripley/R/packages/tests-devel/CohortGenerator.Rcheck/tests/testthat/errorReportSql.txt
  
  Generating cohort set took 1.68 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 0.82 secs
  Cohorts created in table main.cohort
  Initiating cluster consisting only of main thread
  Generating cohort set took 2.38 secs
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  Generating sample set took 1.63 secs
  Generating sample set took 0.15 secs
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  Generating sample set took 0.72 secs
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.4 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.66 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.27 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.3 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.24 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.29 secs
  Generating negative control outcomes set took 0.17 secs
  Generating negative control outcomes set took 0.37 secs
  Negative control set skipped
  Generating negative control outcomes set took 0.14 secs
  Negative control set skipped
  Generating negative control outcomes set took 0.11 secs
  Negative control set skipped
  trying URL 'https://jdbc.postgresql.org/download/postgresql-42.7.3.jar'
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.17 secs
  Generating negative control outcomes set took 0.12 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.18 secs
  Generating negative control outcomes set took 0.13 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.17 secs
  Generating negative control outcomes set took 0.12 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 2.45 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 0.77 secs
  Initiating cluster consisting only of main thread
  Generating cohort set took 1.49 secs
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 412 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-dbms-platforms.R:101:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ResultsDataModel.R:9:3'): (code run outside of `test_that()`) ──
  Error in `download.file(url = paste0(driverSource$baseUrl, driverSource$fileName), 
      destfile = file.path(pathToDriver, driverSource$fileName), 
      method = method)`: cannot open URL 'https://jdbc.postgresql.org/download/postgresql-42.7.3.jar'
  Backtrace:
      ▆
   1. └─DatabaseConnector::downloadJdbcDrivers("postgresql", pathToDriver = jdbcDriverFolder) at test-ResultsDataModel.R:9:3
   2.   └─utils::download.file(...)
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 412 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted