Running 'testthat.R' [64s]
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(TreatmentPatterns)
  > 
  > test_check("TreatmentPatterns")
  Starting 2 test processes
  [ FAIL 50 | WARN 0 | SKIP 25 | PASS 90 ]
  
  ══ Skipped tests (25) ══════════════════════════════════════════════════════════
  • Eunomia [2.0.0] bug (8): 'test-CDMInterfaceDBC.R:6:3',
    'test-CDMInterfaceDBC.R:24:3', 'test-CDMInterfaceDBC.R:53:3',
    'test-CDMInterfaceDBC.R:80:3', 'test-CDMInterfaceDBC.R:117:3',
    'test-computePathways.R:8:3', 'test-computePathways.R:53:3',
    'test-multipleCohortTables.R:68:3'
  • On CRAN (17): 'test-CDMInterface.R:7:3', 'test-export.R:31:3',
    'test-export.R:100:3', 'test-export.R:150:3', 'test-export.R:194:3',
    'test-export.R:238:3', 'test-export.R:314:3', 'test-export.R:381:3',
    'test-export.R:428:3', 'test-export.R:470:3', 'test-export.R:514:3',
    'test-export.R:589:3', 'test-export.R:657:3', 'test-export.R:685:3',
    'test-pathwaysLogical.R:225:3', 'test-pathwaysMultipleTargetsLogical.R:19:3',
    'test-pathwaysMultipleTargetsLogical.R:216:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CDMInterfaceCDMC.R:8:3'): (code run outside of `test_that()`) ──
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-CDMInterfaceCDMC.R:8:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:32:3'): computePathways CDMConnector ─────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:32:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:78:3'): includeTreatments ────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:78:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:122:3'): indexDateOffset ─────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:122:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:177:3'): minEraDuration ──────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:177:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:192:3'): splitEventCohorts ───────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:192:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:230:3'): splitTime ───────────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:230:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:245:3'): eraCollapseSize ─────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:245:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:277:3'): combinationWindow ───────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:277:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:294:3'): minPostCombinationDuration: 30 ──────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-computePathways.R:294:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:403:3'): filterTreatments ────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-computePathways.R:403:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:555:3'): FRFS combination ────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-computePathways.R:555:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:608:3'): LRFS combination ────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-computePathways.R:608:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:662:3'): No target records ───────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(generateCohortTableCDMC()) at test-computePathways.R:662:3
   2. │ └─base::withCallingHandlers(...)
   3. └─TreatmentPatterns:::generateCohortTableCDMC()
   4.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   5.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   6.     └─duckdb (local) .local(drv, ...)
   7.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:682:3'): Empty cohort table ──────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(generateCohortTableCDMC()) at test-computePathways.R:682:3
   2. │ └─base::withCallingHandlers(...)
   3. └─TreatmentPatterns:::generateCohortTableCDMC()
   4.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   5.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   6.     └─duckdb (local) .local(drv, ...)
   7.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:704:3'): No target defined ───────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(generateCohortTableCDMC()) at test-computePathways.R:704:3
   2. │ └─base::withCallingHandlers(...)
   3. └─TreatmentPatterns:::generateCohortTableCDMC()
   4.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   5.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   6.     └─duckdb (local) .local(drv, ...)
   7.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-computePathways.R:724:3'): Attrition ───────────────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(generateCohortTableCDMC()) at test-computePathways.R:724:3
   2. │ └─base::withCallingHandlers(...)
   3. └─TreatmentPatterns:::generateCohortTableCDMC()
   4.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   5.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   6.     └─duckdb (local) .local(drv, ...)
   7.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-TreatmentPatternsResults.R:3:3'): Method: new(data.frame) ──────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(generateCohortTableCDMC()) at test-TreatmentPatternsResults.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. └─TreatmentPatterns:::generateCohortTableCDMC()
   4.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   5.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   6.     └─duckdb (local) .local(drv, ...)
   7.       └─duckdb:::path_normalize(dbdir)
  ── Error ('test-multipleCohortTables.R:7:3'): multiple cohort_tables ───────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-multipleCohortTables.R:7:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:7:3'): A ─────────────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:7:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:49:3'): A-B ──────────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:49:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:93:3'): A-B-C ────────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:93:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:137:3'): A-B+C ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:137:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:181:3'): A+B-C ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:181:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:269:3'): A-B-A-B ─────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:269:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:314:3'): A-B-A ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:314:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:358:3'): A-B-B, collapse to A-B ──────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:358:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:402:3'): A-B-B ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:402:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:446:3'): A+B-A ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:446:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:490:3'): A-A-B ───────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:490:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:534:3'): A-A-B, collapse to A-B ──────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:534:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:578:3'): A+B-A+B, collapse to A+B ────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:578:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:623:3'): A+B-A+B ─────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:623:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:668:3'): A-A+B-B ─────────────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:668:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:711:3'): A-A-C-A+B+C-C ───────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:711:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:755:3'): A-A+B+C-A+C-C ───────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:755:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:799:3'): A-A+C-C-B+C-C ───────────────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:799:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:844:3'): start event == start target ─────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:844:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:886:3'): end event == end target ─────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:886:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:928:3'): start-end event == start-end target ──
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:928:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:970:3'): start event < start target ──────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:970:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1012:3'): start event < start target, periodPrior = -60 ──
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1012:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1054:3'): start event > end target ───────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1054:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1097:3'): collapse A-B-B-B to A-A+B-B ────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1097:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1143:3'): collapse A-B-B-B to A-B ────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1143:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1187:3'): collapse A-A-B-B to A-B ────────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1187:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1231:3'): collapse A-A-B-B to A-B 2 ──────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1231:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysLogical.R:1275:3'): collapse A-A-B-B to A+B 2 ──────────
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysLogical.R:1275:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-pathwaysMultipleTargetsLogical.R:311:3'): Events outside target ──
  Error in `eunomia_dir()`: could not find function "eunomia_dir"
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir()) at test-pathwaysMultipleTargetsLogical.R:311:3
   2. └─DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
   3.   └─duckdb (local) .local(drv, ...)
   4.     └─duckdb:::path_normalize(dbdir)
  ── Error ('test-executeTreatmentPatterns.R:28:3'): CDMConnector ────────────────
  Error: 'eunomia_dir' is not an exported object from 'namespace:CDMConnector'
  Backtrace:
      ▆
   1. └─TreatmentPatterns:::generateCohortTableCDMC() at test-executeTreatmentPatterns.R:28:3
   2.   ├─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir()) at D:\RCompile\CRANpkg\local\4.4\TreatmentPatterns.Rcheck\tests\testthat\helper-generateCohortTableCDMC.R:5:5
   3.   └─DBI::dbConnect(duckdb::duckdb(), dbdir = CDMConnector::eunomia_dir())
   4.     └─duckdb (local) .local(drv, ...)
   5.       └─duckdb:::path_normalize(dbdir)
  
  [ FAIL 50 | WARN 0 | SKIP 25 | PASS 90 ]
  Error: Test failures
  Execution halted