CRAN Package Check Results for Package CohortGenerator

Last updated on 2025-03-04 01:55:27 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.11.2 15.54 200.89 216.43 OK
r-devel-linux-x86_64-debian-gcc 0.11.2 11.68 168.58 180.26 OK
r-devel-linux-x86_64-fedora-clang 0.11.2 371.17 OK
r-devel-linux-x86_64-fedora-gcc 0.11.2 425.12 OK
r-devel-macos-arm64 0.11.2 180.00 OK
r-devel-macos-x86_64 0.11.2 300.00 OK
r-devel-windows-x86_64 0.11.2 15.00 257.00 272.00 OK
r-patched-linux-x86_64 0.11.2 17.34 206.11 223.45 OK
r-release-linux-x86_64 0.11.2 15.20 206.12 221.32 OK
r-release-macos-arm64 0.11.2 118.00 OK
r-release-macos-x86_64 0.11.2 173.00 OK
r-release-windows-x86_64 0.11.2 15.00 259.00 274.00 OK
r-oldrel-macos-arm64 0.11.2 OK
r-oldrel-macos-x86_64 0.11.2 184.00 OK
r-oldrel-windows-x86_64 0.11.2 22.00 324.00 346.00 ERROR

Check Details

Version: 0.11.2
Check: tests
Result: ERROR Running 'testthat.R' [163s] 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: D:\temp\2025_03_03_01_50_00_4640\Rtmp8i07dz/GiBleed_5.3.zip to: D:\temp\2025_03_03_01_50_00_4640\Rtmp8i07dz/GiBleed_5.3.sqlite 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.15 secs Initiating cluster consisting only of main thread Generating cohort set took 0.15 secs Initiating cluster consisting only of main thread Generating cohort set took 0.72 secs Initiating cluster consisting only of main thread Generating cohort set took 0.88 secs Initiating cluster consisting only of main thread Generating cohort set took 0.16 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 d:/Rcompile/CRANpkg/local/4.3/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 d:/Rcompile/CRANpkg/local/4.3/CohortGenerator.Rcheck/tests/testthat/errorReportSql.txt Generating cohort set took 0.8 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 d:/Rcompile/CRANpkg/local/4.3/CohortGenerator.Rcheck/tests/testthat/errorReportSql.txt Generating cohort set took 1 secs Initiating cluster consisting only of main thread Generating cohort set took 0.25 secs 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 Cohorts created in table main.cohort 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 Initiating cluster consisting only of main thread Generating cohort set took 0.82 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.82 secs Generating sample set took 0.18 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.43 secs | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% Initiating cluster consisting only of main thread Generating cohort set took 0.85 secs Initiating cluster consisting only of main thread Generating cohort set took 0.76 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 0.7 secs Initiating cluster consisting only of main thread Generating cohort set took 0.79 secs Initiating cluster consisting only of main thread Generating cohort set took 0.79 secs Generating negative control outcomes set took 0.11 secs Generating negative control outcomes set took 0.1 secs Negative control set skipped Generating negative control outcomes set took 0.09 secs Negative control set skipped Generating negative control outcomes set took 0.09 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 0.77 secs Generating negative control outcomes set took 0.1 secs Initiating cluster consisting only of main thread Generating cohort set took 0.84 secs Generating negative control outcomes set took 0.11 secs Initiating cluster consisting only of main thread Generating cohort set took 0.83 secs Generating negative control outcomes set took 0.1 secs Initiating cluster consisting only of main thread Generating cohort set took 1.36 secs Initiating cluster consisting only of main thread Generating cohort set took 0.3 secs Initiating cluster consisting only of main thread Generating cohort set took 0.98 secs [ FAIL 1 | WARN 1 | SKIP 1 | PASS 405 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dbms-platforms.R:89: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 405 ] Error: Test failures In addition: Warning message: call dbDisconnect() when finished working with a connection Execution halted Flavor: r-oldrel-windows-x86_64