Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(CDMConnector)
  > 
  > test_check("CDMConnector")
  [ FAIL 6 | WARN 0 | SKIP 8 | PASS 5 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Sys.getenv("CDM5_POSTGRESQL_USER") == "" is TRUE (2)
  • Sys.getenv("CDM5_REDSHIFT_USER") == "" is TRUE (2)
  • Sys.getenv("CDM5_SQL_SERVER_USER") == "" is TRUE (2)
  • Sys.getenv("LOCAL_POSTGRESQL_USER") == "" is TRUE (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cdm.R:120'): cdm reference works on duckdb ─────────────────────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-cdm.R:120:2
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb::duckdb(dbdir, read_only, bigint, config)
   5.       ├─methods::new(...)
   6.       │ ├─methods::initialize(value, ...)
   7.       │ └─methods::initialize(value, ...)
   8.       └─duckdb:::rapi_startup(dbdir, read_only, config)
  ── Error ('test-cdm.R:133'): inclusion of cohort tables ────────────────────────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-cdm.R:133:2
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb::duckdb(dbdir, read_only, bigint, config)
   5.       ├─methods::new(...)
   6.       │ ├─methods::initialize(value, ...)
   7.       │ └─methods::initialize(value, ...)
   8.       └─duckdb:::rapi_startup(dbdir, read_only, config)
  ── Error ('test-cdm.R:160'): collect a cdm ─────────────────────────────────────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-cdm.R:160:2
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb::duckdb(dbdir, read_only, bigint, config)
   5.       ├─methods::new(...)
   6.       │ ├─methods::initialize(value, ...)
   7.       │ └─methods::initialize(value, ...)
   8.       └─duckdb:::rapi_startup(dbdir, read_only, config)
  ── Error ('test-cdm.R:182'): stow and cdm_from_files works ─────────────────────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-cdm.R:182:2
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb::duckdb(dbdir, read_only, bigint, config)
   5.       ├─methods::new(...)
   6.       │ ├─methods::initialize(value, ...)
   7.       │ └─methods::initialize(value, ...)
   8.       └─duckdb:::rapi_startup(dbdir, read_only, config)
  ── Error ('test-dbConnectDetails.R:75'): dbConnectDetails works on duckdb ──────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
       ▆
    1. └─CDMConnector (local) self_contained_query(details, "main") at test-dbConnectDetails.R:75:2
    2.   ├─DBI::dbConnect(connection_details) at test-dbConnectDetails.R:6:2
    3.   └─DBI::dbConnect(connection_details)
    4.     └─CDMConnector (local) .local(drv, ...)
    5.       ├─rlang::inject(DBI::dbConnect(!!!l))
    6.       ├─DBI::dbConnect(`<dckdb_dr>`, dbdir = "D:\\temp\\RtmpE9YBnj/jgvonauo/cdm.duckdb")
    7.       └─DBI::dbConnect(`<dckdb_dr>`, dbdir = "D:\\temp\\RtmpE9YBnj/jgvonauo/cdm.duckdb")
    8.         └─duckdb (local) .local(drv, ...)
    9.           └─duckdb::duckdb(dbdir, read_only, bigint, config)
   10.             ├─methods::new(...)
   11.             │ ├─methods::initialize(value, ...)
   12.             │ └─methods::initialize(value, ...)
   13.             └─duckdb:::rapi_startup(dbdir, read_only, config)
  ── Error ('test-validate.R:2'): validate cdm works ─────────────────────────────
  Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 38, but we can only read version 39.
  The database file was created with an older version of DuckDB.
  
  The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
  The storage will be stabilized when version 1.0 releases.
  
  For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), eunomia_dir()) at test-validate.R:2:2
   2. └─DBI::dbConnect(duckdb::duckdb(), eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb::duckdb(dbdir, read_only, bigint, config)
   5.       ├─methods::new(...)
   6.       │ ├─methods::initialize(value, ...)
   7.       │ └─methods::initialize(value, ...)
   8.       └─duckdb:::rapi_startup(dbdir, read_only, config)
  
  [ FAIL 6 | WARN 0 | SKIP 8 | PASS 5 ]
  Error: Test failures
  Execution halted
  Warning messages:
  1: Connection is garbage-collected, use dbDisconnect() to avoid this. 
  2: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this.