Running ‘testthat.R’ [177s/191s]
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 16 | WARN 0 | SKIP 35 | PASS 68 ]
  
  ══ Skipped tests (35) ══════════════════════════════════════════════════════════
  • On CRAN (35): 'test-CDMInterfaceDBC.R:8:3', 'test-CDMInterfaceDBC.R:27:3',
    'test-CDMInterfaceDBC.R:40:3', 'test-CDMInterfaceDBC.R:67:3',
    'test-CDMInterfaceDBC.R:93:3', 'test-CDMInterfaceDBC.R:129:3',
    'test-PathwayConstructor.R:5:3', 'test-PathwayConstructor.R:20:3',
    'test-PathwayConstructor.R:38:3', 'test-PathwayConstructor.R:59:3',
    'test-PathwayConstructor.R:76:3', 'test-executeTreatmentPatterns.R:9:3',
    'test-executeTreatmentPatterns.R:47:3', 'test-export.R:30:3',
    'test-export.R:77:3', 'test-export.R:126:3', 'test-export.R:169:3',
    'test-export.R:210:3', 'test-export.R:283:3', 'test-export.R:328:3',
    'test-export.R:374:3', 'test-export.R:415:3', 'test-export.R:454:3',
    'test-export.R:526:3', 'test-computePathways.R:9:3',
    'test-computePathways.R:33:3', 'test-computePathways.R:55:3',
    'test-computePathways.R:76:3', 'test-computePathways.R:120:3',
    'test-computePathways.R:136:3', 'test-computePathways.R:152:3',
    'test-computePathways.R:190:3', 'test-computePathways.R:206:3',
    'test-computePathways.R:238:3', 'test-computePathways.R:364:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-computePathways.R:270:3'): minPostCombinationDuration: 30 ──────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 3 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-computePathways.R:270:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:23:3'): A ────────────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 2 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:23:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:74:3'): A-B ──────────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 3 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:74:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:127:3'): A-B-C ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:127:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:179:3'): A-B+C ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:179:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:231:3'): A+B-C ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:231:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:283:3'): A-A+B ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:283:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:336:3'): A-B-A-B ─────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 5 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:336:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:388:3'): A-B-A ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:388:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:440:3'): A-B-B, collapse to A-B ──────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:440:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:492:3'): A-B-B ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:492:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:544:3'): A+B-A ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:544:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:596:3'): A-A-B ───────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:596:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:648:3'): A-A-B, collapse to A-B ──────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 4 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:648:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:701:3'): A+B-A+B, collapse to A+B ────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 5 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:701:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  ── Error ('test-pathwaysLogical.R:754:3'): A+B-A+B ─────────────────────────────
  Error in `validateGeneratedCohortSet(cohort, soft = .softValidation)`: 5 observations outside observation period.
  Backtrace:
      ▆
   1. └─CDMConnector::cdmFromCon(...) at test-pathwaysLogical.R:754:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCohortTable(...)
   4.       └─omopgenerics:::validateGeneratedCohortSet(cohort, soft = .softValidation)
   5.         └─omopgenerics:::checkObservationPeriod(cohort)
   6.           └─cli::cli_abort(...)
   7.             └─rlang::abort(...)
  
  [ FAIL 16 | WARN 0 | SKIP 35 | PASS 68 ]
  Error: Test failures
  Execution halted