Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [121s/145s]
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(ggsurvfit)
  Loading required package: ggplot2
  > 
  > test_check("ggsurvfit")
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Plotting outcome "death from cancer".
  Saving 7 x 7 in image
  Saving 7 x 7 in image
  [ FAIL 2 | WARN 0 | SKIP 22 | PASS 187 ]
  
  ══ Skipped tests (22) ══════════════════════════════════════════════════════════
  • On CRAN (22): 'test-add_censor_mark.R:15:3', 'test-add_censor_mark.R:48:3',
    'test-add_censor_mark.R:63:3', 'test-add_confidence_interval.R:12:3',
    'test-add_confidence_interval.R:59:3', 'test-add_confidence_interval.R:80:3',
    'test-add_pvalue.R:10:3', 'test-add_quantile.R:63:3',
    'test-add_quantile.R:155:3', 'test-add_quantile.R:170:3',
    'test-add_quantile.R:183:3', 'test-add_risktable.R:92:3',
    'test-add_risktable.R:168:3', 'test-add_risktable.R:183:3',
    'test-add_risktable.R:246:3', 'test-add_risktable_strata_symbol.R:12:3',
    'test-ggcuminc.R:15:3', 'test-ggcuminc.R:59:3', 'test-ggsurvfit.R:10:3',
    'test-ggsurvfit.R:181:3', 'test-stat_stepribbon.R:25:3',
    'test-theme_risktable.R:14:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-tidy_survfit.R:155:3'): tidy_survfit() works with multi-state models ──
  ... %>% ... (`actual`) not equal to ... %>% ... (`expected`).
  
        attr(actual, 'row.names') | attr(expected, 'row.names')                 
  [226] 226                       | 226                         [226]           
  [227] 227                       | 227                         [227]           
  [228] 228                       | 228                         [228]           
                                  - 229                         [229]           
                                  - 230                         [230]           
                                  - 231                         [231]           
                                  - 232                         [232]           
                                  - 233                         [233]           
                                  - 234                         [234]           
                                  - 235                         [235]           
    ... ...                         ...                         and 209 more ...
  
  actual vs expected
                     time            outcome strata    estimate
    actual[2, ]      0.00 death from cancer  Drug B 0.000000000
    actual[3, ]      0.00 death other causes Drug A 0.000000000
    actual[4, ]      0.00 death other causes Drug B 0.000000000
    actual[5, ]      3.53 death from cancer  Drug A 0.000000000
  + expected[6, ]    3.53 death from cancer  Drug B 0.000000000
    actual[6, ]      3.53 death other causes Drug A 0.010204082
  + expected[8, ]    3.53 death other causes Drug B 0.000000000
  + expected[9, ]    5.33 death from cancer  Drug A 0.000000000
    actual[7, ]      5.33 death from cancer  Drug B 0.009803922
  + expected[11, ]   5.33 death other causes Drug A 0.010204082
  and 431 more ...
  
      actual$time | expected$time                 
  [4] 0           | 0             [4]             
  [5] 3.53        | 3.53          [5]             
  [6] 3.53        | 3.53          [6]             
                  - 3.53          [7]             
                  - 3.53          [8]             
                  - 5.33          [9]             
  [7] 5.33        | 5.33          [10]            
  [8] 5.33        | 5.33          [11]            
                  - 5.33          [12]            
  [9] 6.32        | 6.32          [13]            
  ... ...           ...           and 430 more ...
  
       actual$outcome       | expected$outcome                     
   [6] "death other causes" | "death other causes" [3]             
   [7] "death from cancer"  - "death other causes" [4]             
   [8] "death other causes" - "death from cancer"  [5]             
   [9] "death from cancer"  | "death from cancer"  [6]             
  [10] "death other causes" | "death other causes" [7]             
  [11] "death from cancer"  - "death other causes" [8]             
  [12] "death other causes" - "death from cancer"  [9]             
  [13] "death from cancer"  | "death from cancer"  [10]            
  [14] "death other causes" | "death other causes" [11]            
  [15] "death from cancer"  - "death other causes" [12]            
   ... ...                    ...                  and 432 more ...
  
       actual$strata | expected$strata                 
   [6] "Drug A"      | "Drug A"        [3]             
   [7] "Drug B"      | "Drug B"        [4]             
   [8] "Drug B"      - "Drug A"        [5]             
   [9] "Drug B"      | "Drug B"        [6]             
  [10] "Drug B"      - "Drug A"        [7]             
  [11] "Drug A"      - "Drug B"        [8]             
  [12] "Drug A"      | "Drug A"        [9]             
  [13] "Drug A"      - "Drug B"        [10]            
  [14] "Drug A"      | "Drug A"        [11]            
  [15] "Drug A"      - "Drug B"        [12]            
   ... ...             ...             and 432 more ...
  
       actual$estimate     | expected$estimate                   
   [3] 0                   | 0                   [3]             
   [4] 0                   | 0                   [4]             
   [5] 0                   | 0                   [5]             
   [6] 0.0102040816326531  - 0                   [6]             
   [7] 0.00980392156862745 - 0.0102040816326531  [7]             
   [8] 0                   | 0                   [8]             
   [9] 0.00980392156862745 - 0                   [9]             
  [10] 0.00980392156862745 | 0.00980392156862745 [10]            
  [11] 0.0102040816326531  | 0.0102040816326531  [11]            
  [12] 0.0102040816326531  - 0                   [12]            
   ... ...                   ...                 and 432 more ...
  ── Failure ('test-tidy_survfit.R:168:3'): tidy_survfit() works with multi-state models ──
  ... %>% ... (`actual`) not equal to ... %>% ... (`expected`).
  
        attr(actual, 'row.names') | attr(expected, 'row.names')                  
  [244] 244                       | 244                         [244]            
  [245] 245                       | 245                         [245]            
  [246] 246                       | 246                         [246]            
                                  - 247                         [247]            
                                  - 248                         [248]            
                                  - 249                         [249]            
                                  - 250                         [250]            
                                  - 251                         [251]            
                                  - 252                         [252]            
                                  - 253                         [253]            
    ... ...                         ...                         and 1079 more ...
  
  actual vs expected
                      time            outcome      strata   estimate
    actual[9, ]       0.00 death other causes Drug A, III 0.00000000
    actual[10, ]      0.00 death other causes Drug B, I   0.00000000
    actual[11, ]      0.00 death other causes Drug B, II  0.00000000
    actual[12, ]      0.00 death other causes Drug B, III 0.00000000
  + expected[13, ]    3.53 death from cancer  Drug A, I   0.00000000
  + expected[14, ]    3.53 death from cancer  Drug A, II  0.00000000
    actual[13, ]      3.53 death from cancer  Drug A, III 0.00000000
  + expected[16, ]    3.53 death from cancer  Drug B, I   0.00000000
  + expected[17, ]    3.53 death from cancer  Drug B, II  0.00000000
  + expected[18, ]    3.53 death from cancer  Drug B, III 0.00000000
  + expected[19, ]    3.53 death other causes Drug A, I   0.00000000
  and 1304 more ...
  
       actual$time | expected$time                  
  [12] 0           | 0             [12]             
  [13] 3.53        | 3.53          [13]             
  [14] 3.53        | 3.53          [14]             
                   - 3.53          [15]             
                   - 3.53          [16]             
                   - 3.53          [17]             
                   - 3.53          [18]             
                   - 3.53          [19]             
                   - 3.53          [20]             
                   - 3.53          [21]             
   ... ...           ...           and 1302 more ...
  
       actual$outcome       | expected$outcome                      
  [11] "death other causes" | "death other causes" [11]             
  [12] "death other causes" | "death other causes" [12]             
  [13] "death from cancer"  | "death from cancer"  [13]             
  [14] "death other causes" -                                       
  [15] "death from cancer"  | "death from cancer"  [14]             
  [16] "death other causes" -                                       
  [17] "death from cancer"  | "death from cancer"  [15]             
  [18] "death other causes" -                                       
  [19] "death from cancer"  | "death from cancer"  [16]             
  [20] "death other causes" -                                       
   ... ...                    ...                  and 1396 more ...
  
       actual$strata | expected$strata                  
  [13] "Drug A, III" - "Drug B, I"     [10]             
  [14] "Drug A, III" - "Drug B, II"    [11]             
  [15] "Drug B, III" | "Drug B, III"   [12]             
  [16] "Drug B, III" - "Drug A, I"     [13]             
  [17] "Drug B, II"  - "Drug A, II"    [14]             
  [18] "Drug B, II"  - "Drug A, III"   [15]             
  [19] "Drug A, III" - "Drug B, I"     [16]             
  [20] "Drug A, III" - "Drug B, II"    [17]             
  [21] "Drug A, II"  - "Drug B, III"   [18]             
  [22] "Drug A, II"  - "Drug A, I"     [19]             
   ... ...             ...             and 1313 more ...
  
     `actual$estimate[11:237]`: 0 0 0               and 1303 more...
  `expected$estimate[11:1323]`: 0 0 0 0 0 0 0 0 0 0              ...
  
        actual$estimate   | expected$estimate       
  [243] 0.32258064516129  | 0.32258064516129  [1329]
  [244] 0.242424242424242 | 0.242424242424242 [1330]
  [245] 0.222222222222222 | 0.222222222222222 [1331]
  [246] 0.333333333333333 - 0.333333333333334 [1332]
  
  [ FAIL 2 | WARN 0 | SKIP 22 | PASS 187 ]
  Deleting unused snapshots:
  • add_censor_mark/cuminc2-censor-mark-all-outcomes.svg
  • add_censor_mark/cuminc2-censor-mark.svg
  • add_censor_mark/cuminc3-censor-mark-all-outcomes.svg
  • add_censor_mark/cuminc3-censor-mark.svg
  • add_censor_mark/sf2-censor-mark.svg
  • add_censor_mark/sf3-censor-mark.svg
  • add_confidence_interval/cuminc2-confidence-interval-all-outcomes.svg
  • add_confidence_interval/cuminc2-confidence-interval.svg
  • add_confidence_interval/cuminc3-confidence-interval-all-outcomes.svg
  • add_confidence_interval/cuminc3-confidence-interval.svg
  • add_confidence_interval/sf2-confidence-interval.svg
  • add_confidence_interval/sf3-confidence-interval.svg
  • add_pvalue/cuminc2-pvalue.svg
  • add_pvalue/sf2-pvalue-annotation-risk.svg
  • add_pvalue/sf2-pvalue-annotation.svg
  • add_pvalue/sf2-pvalue-with-survfit.svg
  • add_quantile/cuminc2-quantile-all-outcomes.svg
  • add_quantile/cuminc2-quantile.svg
  • add_quantile/cuminc3-quantile-all-outcomes.svg
  • add_quantile/cuminc3-quantile.svg
  • add_quantile/sf-mtcars-decreasing-many-quantiles.svg
  • add_quantile/sf-mtcars-decreasing.svg
  • add_quantile/sf-mtcars-increasing-many-quantiles.svg
  • add_quantile/sf-mtcars-increasing.svg
  • add_quantile/sf-mtcars-timing.svg
  • add_quantile/sf2-colon-quantile-no-line.svg
  • add_quantile/sf2-colon-quantile.svg
  • add_quantile/sf2-quantile-x-value-not-all-groups.svg
  • add_quantile/sf2-quantile-x-value-out-of-bounds.svg
  • add_quantile/sf2-quantile.svg
  • add_quantile/sf3-quantile.svg
  • add_risktable/add-risktable-overall1.svg
  • add_risktable/add-risktable-overall2.svg
  • add_risktable/add-risktable-weights.svg
  • add_risktable/cuminc2-risktable-all-outcomes.svg
  • add_risktable/cuminc2-risktable.svg
  • add_risktable/cuminc3-risktable-all-outcomes.svg
  • add_risktable/cuminc3-risktable.svg
  • add_risktable/sf1-risktable-custom-stats-and-label2.svg
  • add_risktable/sf1-risktable-height.svg
  • add_risktable/sf2-risktable-custom-stats-and-label.svg
  • add_risktable/sf2-risktable-custom-stats-and-label2.svg
  • add_risktable/sf2-risktable.svg
  • add_risktable/sf3-risktable-custom-stats-and-label.svg
  • add_risktable/sf3-risktable-custom-stats-and-label2.svg
  • add_risktable/sf3-risktable.svg
  • add_risktable_strata_symbol/add-risktable-strata-symbol-circle.svg
  • add_risktable_strata_symbol/add-risktable-strata-symbol-uni.svg
  • ggcuminc/cuminc1-ggcuminc-sf-all-outcomes.svg
  • ggcuminc/cuminc1-ggcuminc.svg
  • ggcuminc/cuminc2-ggcuminc-all-outcomes.svg
  • ggcuminc/cuminc2-ggcuminc-sf-all-outcomes.svg
  • ggcuminc/cuminc2-ggcuminc.svg
  • ggcuminc/cuminc3-ggcuminc-all-outcomes.svg
  • ggcuminc/cuminc3-ggcuminc-sf-all-outcomes.svg
  • ggcuminc/cuminc3-ggcuminc.svg
  • ggcuminc/sf-cuminc2-ggcuminc.svg
  • ggcuminc/sf-cuminc3-ggcuminc.svg
  • ggsurvfit/sf1-ggsurvfit-cumhaz.svg
  • ggsurvfit/sf1-ggsurvfit-custom.svg
  • ggsurvfit/sf1-ggsurvfit-kmunicate.svg
  • ggsurvfit/sf1-ggsurvfit-risk.svg
  • ggsurvfit/sf2-ggsurvfit-cumhaz.svg
  • ggsurvfit/sf2-ggsurvfit-custom.svg
  • ggsurvfit/sf2-ggsurvfit-kmunicate.svg
  • ggsurvfit/sf2-ggsurvfit-linetype.svg
  • ggsurvfit/sf2-ggsurvfit-new-data-geom2.svg
  • ggsurvfit/sf2-ggsurvfit-risk.svg
  • ggsurvfit/sf2-ggsurvfit-strata-transformation.svg
  • ggsurvfit/sf2-ggsurvfit.svg
  • ggsurvfit/sf3-ggsurvfit-cumhaz.svg
  • ggsurvfit/sf3-ggsurvfit-custom.svg
  • ggsurvfit/sf3-ggsurvfit-kmunicate.svg
  • ggsurvfit/sf3-ggsurvfit-linetype.svg
  • ggsurvfit/sf3-ggsurvfit-risk.svg
  • ggsurvfit/sf3-ggsurvfit.svg
  • stat_stepribbon/gg-stepribbon2.svg
  • theme_risktable/sf1-ggsurvfit-theme-risktable-boxed-symbol.svg
  • theme_risktable/sf1-ggsurvfit-theme-risktable-boxed.svg
  • theme_risktable/sf2-ggsurvfit-theme-risktable-boxed-symbol.svg
  • theme_risktable/sf2-ggsurvfit-theme-risktable-boxed.svg
  • theme_risktable/sf2-ggsurvfit-theme-risktable-default.svg
  • theme_risktable/sf3-ggsurvfit-theme-risktable-boxed-symbol.svg
  • theme_risktable/sf3-ggsurvfit-theme-risktable-boxed.svg
  • theme_risktable/sf3-ggsurvfit-theme-risktable-default.svg
  Error: Test failures
  Execution halted