Running ‘testthat.R’ [24m/32m]
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 1 | WARN 6 | SKIP 60 | PASS 170 ]
  
  ══ Skipped tests (60) ══════════════════════════════════════════════════════════
  • 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-multipleCohortTables.R:68:3', 'test-computePathways.R:8:3',
    'test-computePathways.R:53:3'
  • On CRAN (45): 'test-CDMInterface.R:7: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:8:3',
    'test-pathwaysLogical.R:50:3', 'test-pathwaysLogical.R:94:3',
    'test-pathwaysLogical.R:138:3', 'test-pathwaysLogical.R:182:3',
    'test-pathwaysLogical.R:225:3', 'test-pathwaysLogical.R:270:3',
    'test-pathwaysLogical.R:315:3', 'test-pathwaysLogical.R:359:3',
    'test-pathwaysLogical.R:403:3', 'test-pathwaysLogical.R:447:3',
    'test-pathwaysLogical.R:491:3', 'test-pathwaysLogical.R:535:3',
    'test-pathwaysLogical.R:579:3', 'test-pathwaysLogical.R:624:3',
    'test-pathwaysLogical.R:669:3', 'test-pathwaysLogical.R:712:3',
    'test-pathwaysLogical.R:755:3', 'test-pathwaysLogical.R:800:3',
    'test-pathwaysLogical.R:845:3', 'test-pathwaysLogical.R:886:3',
    'test-pathwaysLogical.R:929:3', 'test-pathwaysLogical.R:971:3',
    'test-pathwaysLogical.R:1013:3', 'test-pathwaysLogical.R:1055:3',
    'test-pathwaysLogical.R:1098:3', 'test-pathwaysLogical.R:1144:3',
    'test-pathwaysLogical.R:1188:3', 'test-pathwaysLogical.R:1232:3',
    'test-pathwaysLogical.R:1276:3', 'test-pathwaysLogical.R:1322:3',
    'test-pathwaysLogical.R:1369:3', 'test-pathwaysLogical.R:1416:3',
    'test-pathwaysLogical.R:1462:3',
    'test-pathwaysMultipleTargetsLogical.R:19:3',
    'test-pathwaysMultipleTargetsLogical.R:225:3'
  • On Linux (7): 'test-executeTreatmentPatterns.R:10:3', 'test-export.R:30:3',
    'test-export.R:99:3', 'test-export.R:149:3', 'test-export.R:193:3',
    'test-export.R:237:3', 'test-computePathways.R:715:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CDMInterfaceCDMC.R:92:3'): Method: fetchCohortTable ────────────
  Error: unable to find an inherited method for function 'dbWriteTable' for signature 'conn = "Andromeda", name = "character", value = "cohort_table"'
  Backtrace:
      ▆
   1. └─cdmInterface$fetchCohortTable(...) at test-CDMInterfaceCDMC.R:92:3
   2.   └─private$cdmconFetchCohortTable(...)
   3.     ├─methods (local) `$<-`(`*tmp*`, "tbl_temp", value = `<chrt_tbl[,7]>`)
   4.     └─Andromeda (local) `$<-`(`*tmp*`, "tbl_temp", value = `<chrt_tbl[,7]>`)
   5.       ├─methods (local) `[[<-`(`*tmp*`, name, value = `<chrt_tbl[,7]>`)
   6.       └─Andromeda (local) `[[<-`(`*tmp*`, name, value = `<chrt_tbl[,7]>`)
   7.         └─Andromeda (local) .local(x, i, ..., value)
   8.           └─duckdb::dbWriteTable(...)
   9.             └─methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)
  
  [ FAIL 1 | WARN 6 | SKIP 60 | PASS 170 ]
  Error: Test failures
  Execution halted