Running ‘testthat.R’ [57s/49s]
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(CohortSurvival)
  > 
  > test_check("CohortSurvival")
  Starting 2 test processes
  [ FAIL 1 | WARN 0 | SKIP 45 | PASS 1 ]
  
  ══ Skipped tests (45) ══════════════════════════════════════════════════════════
  • On CRAN (45): 'test-benchmarkCohortSurvival.R:2:3',
    'test-benchmarkCohortSurvival.R:63:3', 'test-addCohortSurvival.R:71:3',
    'test-addCohortSurvival.R:158:3', 'test-addCohortSurvival.R:271:3',
    'test-addCohortSurvival.R:377:3', 'test-addCohortSurvival.R:489:3',
    'test-addCohortSurvival.R:567:3', 'test-addCohortSurvival.R:667:3',
    'test-addCohortSurvival.R:753:3', 'test-generateDeathCohort.R:2:3',
    'test-generateDeathCohort.R:62:3', 'test-generateDeathCohort.R:129:3',
    'test-generateDeathCohort.R:195:3', 'test-generateDeathCohort.R:262:3',
    'test-generateDeathCohort.R:351:3', 'test-generateDeathCohort.R:451:3',
    'test-mockMGUS2cdm.R:2:3', 'test-plotSurvival.R:2:3',
    'test-plotSurvival.R:19:3', 'test-plotSurvival.R:37:3',
    'test-plotSurvival.R:57:3', 'test-plotSurvival.R:77:3',
    'test-plotSurvival.R:98:3', 'test-plotSurvival.R:129:3',
    'test-plotSurvival.R:149:3', 'test-tableSurvival.R:2:3',
    'test-tableSurvival.R:51:3', 'test-estimateSurvival.R:88:3',
    'test-estimateSurvival.R:127:3', 'test-estimateSurvival.R:177:3',
    'test-estimateSurvival.R:344:3', 'test-estimateSurvival.R:557:3',
    'test-estimateSurvival.R:708:3', 'test-estimateSurvival.R:1225:3',
    'test-estimateSurvival.R:1351:3', 'test-estimateSurvival.R:1373:3',
    'test-estimateSurvival.R:1408:3', 'test-estimateSurvival.R:1484:3',
    'test-estimateSurvival.R:1676:3', 'test-estimateSurvival.R:1800:3',
    'test-estimateSurvival.R:1830:3', 'test-estimateSurvival.R:1849:3',
    'test-estimateSurvival.R:1883:3', 'test-estimateSurvival.R:2014:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-estimateSurvival.R:9:3'): mgus example: no Competing risk ──────
  Error in `validateSummariseResult(x)`: ids are not unique in settings
  Backtrace:
       ▆
    1. ├─... %>% asSurvivalResult() at test-estimateSurvival.R:9:3
    2. ├─CohortSurvival::asSurvivalResult(.)
    3. │ └─omopgenerics::newSummarisedResult(result)
    4. │   └─omopgenerics:::assertClass(x = x, class = "data.frame")
    5. │     ├─base::paste0(...)
    6. │     └─base::paste0(base::class(x), collapse = ", ")
    7. └─CohortSurvival::estimateSingleEventSurvival(...)
    8.   └─omopgenerics::newSummarisedResult(surv_estimates)
    9.     └─omopgenerics:::validateSummariseResult(x)
   10.       └─cli::cli_abort("ids are not unique in settings")
   11.         └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 45 | PASS 1 ]
  Error: Test failures
  Execution halted