* using log directory 'd:/Rcompile/CRANpkg/local/4.5/SelfControlledCohort.Rcheck'
* 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 'SelfControlledCohort/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'SelfControlledCohort' version '2.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 hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'SelfControlledCohort' can be installed ... OK
* 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 ... [3s] OK
* checking whether the package can be loaded with stated dependencies ... [2s] OK
* checking whether the package can be unloaded cleanly ... [2s] OK
* checking whether the namespace can be loaded with stated dependencies ... [2s] OK
* checking whether the namespace can be unloaded cleanly ... [3s] OK
* checking loading without being on the library search path ... [3s] 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 ... [1s] 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 installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... [6s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ... [6s] ERROR
  Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(SelfControlledCohort)
  Loading required package: DatabaseConnector
  > options(dbms = "sqlite")
  > test_check("SelfControlledCohort")
  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_09_10_23_25_30964\RtmpApKtlV/GiBleed_5.3.zip to: D:\temp\2026_10_09_10_23_25_30964\RtmpApKtlV/GiBleed_5.3.sqlite
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error:
  ! not an error
  Backtrace:
       ▆
    1. ├─testthat::test_check("SelfControlledCohort")
    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. │                       └─SelfControlledCohort:::getTestDatabaseConnectionDetails(...) at ./setup.R:13:1
   15. │                         └─Eunomia::getDatabaseFile(...) at ./helper.R:39:5
   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 ... [11s] ERROR
Error(s) in re-building vignettes:
--- re-building 'StudyDiagnostics.Rmd' using rmarkdown
--- finished re-building 'StudyDiagnostics.Rmd'

--- re-building 'UsingSelfControlledCohort.Rmd' using rmarkdown
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


Quitting from UsingSelfControlledCohort.Rmd:31-43 [setup]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! not an error
---
Backtrace:
     ▆
  1. └─Eunomia::getEunomiaConnectionDetails()
  2.   └─Eunomia::getDatabaseFile(...)
  3.     └─Eunomia::extractLoadData(...)
  4.       └─Eunomia::loadDataFiles(...)
  5.         ├─DBI::dbExecute(conn = connection, statement = statement)
  6.         └─DBI::dbExecute(conn = connection, statement = statement)
  7.           ├─DBI::dbSendStatement(conn, statement, ...)
  8.           └─DBI::dbSendStatement(conn, statement, ...)
  9.             ├─DBI::dbSendQuery(conn, statement, ...)
 10.             └─RSQLite::dbSendQuery(conn, statement, ...)
 11.               └─RSQLite (local) .local(conn, statement, ...)
 12.                 ├─methods::new(...)
 13.                 │ ├─methods::initialize(value, ...)
 14.                 │ └─methods::initialize(value, ...)
 15.                 └─RSQLite:::result_create(conn@ptr, statement)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'UsingSelfControlledCohort.Rmd' failed with diagnostics:
not an error
--- failed re-building 'UsingSelfControlledCohort.Rmd'

SUMMARY: processing the following file failed:
  'UsingSelfControlledCohort.Rmd'

Error: Vignette re-building failed.
Execution halted

* checking PDF version of manual ... [17s] OK
* checking HTML version of manual ... [5s] OK
* DONE
Status: 2 ERRORs
