- using R version 4.5.3 (2026-03-11 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'CohortMethod/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'CohortMethod' version '6.0.3'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'CohortMethod' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 14.3.0'
- checking installed package size ... OK
- checking package directory ... 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 ... [5s] OK
- checking whether the package can be loaded with stated dependencies ... [5s] OK
- checking whether the package can be unloaded cleanly ... [4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s] OK
- checking whether the namespace can be unloaded cleanly ... [5s] OK
- checking loading without being on the library search path ... [5s] 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 ... [31s] OK
- checking Rd files ... [2s] OK
- checking Rd metadata ... 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [1s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking sizes of PDF files under 'inst/doc' ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [17s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [9s] ERROR
Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> test_check("CohortMethod")
Loading required package: CohortMethod
Loading required package: DatabaseConnector
Loading required package: Cyclops
Loading required package: FeatureExtraction
Loading required package: Andromeda
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
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\2026_10_12_01_50_00_23142\Rtmp4IT6G7/GiBleed_5.3.zip to: D:\temp\2026_10_12_01_50_00_23142\Rtmp4IT6G7/GiBleed_5.3.sqlite
Error in `source_dir()`:
! Failed to evaluate './setup.R'.
Caused by error:
! not an error
Backtrace:
▆
1. ├─testthat::test_check("CohortMethod")
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(...)
11. │ ├─base::withCallingHandlers(...)
12. │ └─base::eval(exprs, env)
13. │ └─base::eval(exprs, env)
14. │ └─Eunomia::getEunomiaConnectionDetails() at ./setup.R:6:3
15. │ └─Eunomia::getDatabaseFile(...)
16. │ └─Eunomia::extractLoadData(...)
17. │ └─Eunomia::loadDataFiles(...)
18. │ ├─DBI::dbExecute(conn = connection, statement = statement)
19. │ └─DBI::dbExecute(conn = connection, statement = statement)
20. │ ├─DBI::dbSendStatement(conn, statement, ...)
21. │ └─DBI::dbSendStatement(conn, statement, ...)
22. │ ├─DBI::dbSendQuery(conn, statement, ...)
23. │ └─RSQLite::dbSendQuery(conn, statement, ...)
24. │ └─RSQLite (local) .local(conn, statement, ...)
25. │ ├─methods::new(...)
26. │ │ ├─methods::initialize(value, ...)
27. │ │ └─methods::initialize(value, ...)
28. │ └─RSQLite:::result_create(conn@ptr, statement)
29. └─base::.handleSimpleError(`<fn>`, "not an error", base::quote(NULL))
30. └─testthat (local) h(simpleError(msg, call))
31. └─cli::cli_abort(...)
32. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [51s] OK
- checking PDF version of manual ... [19s] OK
- checking HTML version of manual ... [12s] OK
- DONE
Status: 1 ERROR