Running ‘testthat.R’ [19s/17s]
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.
  > test-CDMInterface.R: 
  > test-CDMInterface.R: Attaching package: 'dplyr'
  > test-CDMInterface.R: 
  > test-CDMInterface.R: The following objects are masked from 'package:stats':
  > test-CDMInterface.R: 
  > test-CDMInterface.R:     filter, lag
  > test-CDMInterface.R: 
  > test-CDMInterface.R: The following objects are masked from 'package:base':
  > test-CDMInterface.R: 
  > test-CDMInterface.R:     intersect, setdiff, setequal, union
  > test-CDMInterface.R: 
  > test-CDMInterfaceCDMC.R: 
  > test-CDMInterfaceCDMC.R: Attaching package: 'dplyr'
  > test-CDMInterfaceCDMC.R: 
  > test-CDMInterfaceCDMC.R: The following objects are masked from 'package:stats':
  > test-CDMInterfaceCDMC.R: 
  > test-CDMInterfaceCDMC.R:     filter, lag
  > test-CDMInterfaceCDMC.R: 
  > test-CDMInterfaceCDMC.R: The following objects are masked from 'package:base':
  > test-CDMInterfaceCDMC.R: 
  > test-CDMInterfaceCDMC.R:     intersect, setdiff, setequal, union
  > test-CDMInterfaceCDMC.R: 
  Saving _problems/test-CRAN-27.R
  [ FAIL 1 | WARN 0 | SKIP 123 | PASS 0 ]
  
  ══ Skipped tests (123) ═════════════════════════════════════════════════════════
  • Eunomia [2.0.0] bug (8): 'test-CDMInterfaceDBC.R:6:3',
    'test-CDMInterfaceDBC.R:25:3', 'test-CDMInterfaceDBC.R:55:3',
    'test-CDMInterfaceDBC.R:83:3', 'test-CDMInterfaceDBC.R:121:3',
    'test-computePathways.R:8:3', 'test-computePathways.R:55:3',
    'test-multipleCohortTables.R:69:3'
  • On CRAN (115): 'test-CDMInterface.R:6:3', 'test-CDMInterfaceCDMC.R:41:3',
    'test-CDMInterfaceCDMC.R:49:3', 'test-CDMInterfaceCDMC.R:57:3',
    'test-CDMInterfaceCDMC.R:75:3', 'test-TreatmentPatternsResults.R:2:3',
    'test-TreatmentPatternsResults.R:25:3',
    'test-TreatmentPatternsResults.R:53:3',
    'test-TreatmentPatternsResults.R:81:3',
    'test-TreatmentPatternsResults.R:86:3',
    'test-TreatmentPatternsResults.R:96:3',
    'test-TreatmentPatternsResults.R:108:3',
    'test-TreatmentPatternsResults.R:120:3',
    'test-TreatmentPatternsResults.R:142:3',
    'test-TreatmentPatternsResults.R:160:3', 'test-createSankeyDiagram.R:13:3',
    'test-createSankeyDiagram.R:18:3', 'test-createSankeyDiagram.R:35:3',
    'test-createSankeyDiagram.R:80:3', 'test-createSankeyDiagram.R:118:3',
    'test-createSankeyDiagram.R:143:3', 'test-createSunburstPlot.R:13:3',
    'test-createSunburstPlot.R:19:3', 'test-createSunburstPlot.R:29:3',
    'test-executeTreatmentPatterns.R:5:3',
    'test-executeTreatmentPatterns.R:10:3',
    'test-executeTreatmentPatterns.R:28:3', 'test-computePathways.R:32:3',
    'test-computePathways.R:80:3', 'test-computePathways.R:136:3',
    'test-computePathways.R:152:3', 'test-computePathways.R:191:3',
    'test-computePathways.R:207:3', 'test-computePathways.R:240:3',
    'test-computePathways.R:258:3', 'test-computePathways.R:365:3',
    'test-computePathways.R:513:3', 'test-computePathways.R:564:3',
    'test-computePathways.R:615:3', 'test-computePathways.R:636:3',
    'test-computePathways.R:659:3', 'test-computePathways.R:678:3',
    'test-exportPatientLevel.R:2:3',
    'test-getResultsDataModelSpecifications.R:2:3', 'test-ggSunburst.R:2:3',
    'test-ggSunburst.R:24:3', 'test-ggSunburst.R:40:3',
    'test-multipleCohortTables.R:6:3', 'test-export.R:8:3', 'test-export.R:15:3',
    'test-export.R:31:3', 'test-export.R:101:3', 'test-export.R:154:3',
    'test-export.R:198:3', 'test-export.R:242:3', 'test-export.R:319:3',
    'test-export.R:386:3', 'test-export.R:435:3', 'test-export.R:477:3',
    'test-export.R:521:3', 'test-export.R:596:3', 'test-export.R:670:3',
    'test-export.R:698:3', 'test-pathwaysMultipleTargetsLogical.R:18:3',
    'test-pathwaysMultipleTargetsLogical.R:220:3',
    'test-pathwaysMultipleTargetsLogical.R:311:3',
    'test-plotEventDuration.R:2:3', 'test-plotEventDuration.R:12:3',
    'test-plotEventDuration.R:37:3', 'test-plotEventDuration.R:63:3',
    'test-pathwaysLogical.R:6:3', 'test-pathwaysLogical.R:46:3',
    'test-pathwaysLogical.R:88:3', 'test-pathwaysLogical.R:130:3',
    'test-pathwaysLogical.R:172:3', 'test-pathwaysLogical.R:214:3',
    'test-pathwaysLogical.R:256:3', 'test-pathwaysLogical.R:299:3',
    'test-pathwaysLogical.R:341:3', 'test-pathwaysLogical.R:383:3',
    'test-pathwaysLogical.R:425:3', 'test-pathwaysLogical.R:467:3',
    'test-pathwaysLogical.R:509:3', 'test-pathwaysLogical.R:551:3',
    'test-pathwaysLogical.R:593:3', 'test-pathwaysLogical.R:636:3',
    'test-pathwaysLogical.R:679:3', 'test-pathwaysLogical.R:720:3',
    'test-pathwaysLogical.R:762:3', 'test-pathwaysLogical.R:804:3',
    'test-pathwaysLogical.R:847:3', 'test-pathwaysLogical.R:887:3',
    'test-pathwaysLogical.R:927:3', 'test-pathwaysLogical.R:967:3',
    'test-pathwaysLogical.R:1008:3', 'test-pathwaysLogical.R:1050:3',
    'test-pathwaysLogical.R:1091:3', 'test-pathwaysLogical.R:1135:3',
    'test-pathwaysLogical.R:1177:3', 'test-pathwaysLogical.R:1219:3',
    'test-pathwaysLogical.R:1261:3', 'test-pathwaysLogical.R:1305:3',
    'test-pathwaysLogical.R:1350:3', 'test-pathwaysLogical.R:1395:3',
    'test-pathwaysLogical.R:1440:3', 'test-pathwaysLogical.R:1485:3',
    'test-pathwaysLogical.R:1528:3', 'test-pathwaysLogical.R:1574:3',
    'test-pathwaysLogical.R:1620:3', 'test-pathwaysLogical.R:1666:3',
    'test-pathwaysLogical.R:1710:3', 'test-pathwaysLogical.R:1754:3',
    'test-pathwaysLogical.R:1801:3', 'test-pathwaysLogical.R:1857:3',
    'test-pathwaysLogical.R:1912:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CRAN.R:23:3'): CRAN Tests ──────────────────────────────────────
  Error in `validateComputePathways()`: No 'target' cohort specified in `cohorts`.
  Backtrace:
      ▆
   1. └─TreatmentPatterns::computePathways(...) at test-CRAN.R:23:3
   2.   └─TreatmentPatterns:::validateComputePathways()
  
  [ FAIL 1 | WARN 0 | SKIP 123 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted