Skip to content

Commit 0ef2d9c

Browse files
updated
1 parent 17670c5 commit 0ef2d9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/testthat/test-add_risktable.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,12 @@ test_that("add_risktable() works with ggsurvfit() `start.time` and negative time
336336

337337

338338
test_that("add_risktable() works with multiple survival endpoints (Issue #212)", {
339-
339+
340340
os_data <- df_lung %>% dplyr::mutate(PARAM = "Overall Survival")
341341
pfs_data <- df_lung %>% dplyr::mutate(time = time * 0.7, PARAM = "Progression-Free Survival")
342342
combined_data <- dplyr::bind_rows(os_data, pfs_data)
343-
344-
343+
344+
345345
expect_error(
346346
p <- survfit2(Surv(time, status) ~ PARAM, data = combined_data) %>%
347347
ggsurvfit() + add_risktable(),

0 commit comments

Comments
 (0)