* using log directory 'd:/RCompile/CRANincoming/R-devel/ResultModelManager.Rcheck' * using R Under development (unstable) (2024-08-19 r87028 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'ResultModelManager/DESCRIPTION' ... OK * this is package 'ResultModelManager' version '0.5.10' * package encoding: UTF-8 * checking CRAN incoming feasibility ... Note_to_CRAN_maintainers Maintainer: 'Jamie Gilbert ' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'ResultModelManager' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [10s] 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 sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ResultModelManager) Loading required package: R6 Loading required package: DatabaseConnector > > test_check("ResultModelManager") Connecting using SQLite driver trying URL 'https://ohdsi.github.io/DatabaseConnectorJars/postgresqlV42.2.18.zip' Content type 'application/zip' length 931791 bytes (909 KB) ================================================== downloaded 909 KB DatabaseConnector postgresql JDBC driver downloaded to 'C:\Users\CRAN\Documents/.jdbcDrivers'. Connecting using SQLite driver | | | 0% | |=================================== | 50% | |======================================================================| 100% Executing SQL took 0.0104 secs Connecting using SQLite driver Closing database connection Connecting using SQLite driver Closing database connection Connecting using SQLite driver Closing database connection | | | 0% | |======================================================================| 100% Executing SQL took 0.00401 secs Connecting using SQLite driver | | | 0% | |=================================== | 50% | |======================================================================| 100% Executing SQL took 0.00469 secs Using DatabaseConnector jdbc driver. Initalizing pooled connection Connecting using SQLite driver Initalizing pooled connection Connecting using SQLite driver Initalizing pooled connection Connecting using SQLite driver | | | 0% | |======================================================================| 100% Executing SQL took 0.00383 secs Migrator using SQL files in ResultModelManager Connecting using SQLite driver Creating migrations table Executing SQL took 0.00382 secs Migrations table created Executing migration: Migration_1-example.sql Executing SQL took 0.00653 secs Saving migration: Migration_1-example.sql Executing SQL took 0.00384 secs Migration complete Migration_1-example.sql Executing migration: Migration_2-MultiPlatformExample.sql Executing SQL took 0.00546 secs Saving migration: Migration_2-MultiPlatformExample.sql Executing SQL took 0.00374 secs Migration complete Migration_2-MultiPlatformExample.sql Closing database connection Connecting using SQLite driver Migrator using SQL files in ResultModelManager Connecting using SQLite driver Closing database connection Migrator using SQL files in directory structure Connecting using SQLite driver Creating migrations table Executing SQL took 0.00361 secs Migrations table created Executing migration: Migration_1-example.sql Executing SQL took 0.00634 secs Saving migration: Migration_1-example.sql Executing SQL took 0.00404 secs Migration complete Migration_1-example.sql Executing migration: Migration_2-MultiPlatformExample.sql Executing SQL took 0.0117 secs Saving migration: Migration_2-MultiPlatformExample.sql Executing SQL took 0.00382 secs Migration complete Migration_2-MultiPlatformExample.sql Closing database connection Connecting using SQLite driver Migrator using SQL files in directory structure Column databaseId in table foo in results folder foo.zip is of type character, but was expecting bigint. Attempting to convert. Column charField in table foo in results folder foo.zip is of type numeric, but was expecting varchar. Attempting to convert. Column dateField in table foo in results folder foo.zip is of type character, but was expecting date. Attempting to convert. Using DatabaseConnector jdbc driver. Connecting using SQLite driver Connecting using SQLite driver Executing SQL took 0.00368 secs Closing database connection Error in .subset2(e, "finalize")() : attempt to apply non-function Calls: -> Connecting using SQLite driver Executing SQL took 0.00314 secs Connecting using SQLite driver Using DatabaseConnector jdbc driver. Initalizing pooled connection Connecting using SQLite driver Closing database connection null/na primary keys found duplicate primary keys found Connecting using SQLite driver Inserting data took 0.0528 secs Connecting using SQLite driver Closing database connection | | | 0% | |============ | 17% | |======================= | 33% | |=================================== | 50% | |=============================================== | 67% | |========================================================== | 83% | |======================================================================| 100% Executing SQL took 0.00964 secs Connecting using SQLite driver [ FAIL 1 | WARN 0 | SKIP 10 | PASS 119 ] ══ Skipped tests (10) ══════════════════════════════════════════════════════════ • On CRAN (2): 'test-DataMigrationManager.R:70:3', 'test-DataMigrationManager.R:92:3' • results db not available (8): 'test-DataModel.R:18:3', 'test-DataModel.R:56:3', 'test-DataModel.R:142:3', 'test-DataModel.R:197:3', 'test-DataModel.R:237:3', 'test-PooledConnection.R:34:3', 'test-ResultExportManager.R:130:3', 'test-Utils.R:15:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-PooledConnection.R:26:3'): Maintained connection consistency ─── Error in `eval(code, test_env)`: object 'testDatabaseConnectionDetails' not found Backtrace: ▆ 1. └─PooledConnectionHandler$new(testDatabaseConnectionDetails) at test-PooledConnection.R:26:3 2. └─ResultModelManager (local) initialize(...) 3. └─checkmate::assertClass(...) 4. └─checkmate::checkClass(x, classes, ordered, null.ok) [ FAIL 1 | WARN 0 | SKIP 10 | PASS 119 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [44s] OK * checking PDF version of manual ... [15s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR