We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17670c5 commit 0ef2d9cCopy full SHA for 0ef2d9c
1 file changed
tests/testthat/test-add_risktable.R
@@ -336,12 +336,12 @@ test_that("add_risktable() works with ggsurvfit() `start.time` and negative time
336
337
338
test_that("add_risktable() works with multiple survival endpoints (Issue #212)", {
339
-
+
340
os_data <- df_lung %>% dplyr::mutate(PARAM = "Overall Survival")
341
pfs_data <- df_lung %>% dplyr::mutate(time = time * 0.7, PARAM = "Progression-Free Survival")
342
combined_data <- dplyr::bind_rows(os_data, pfs_data)
343
344
345
expect_error(
346
p <- survfit2(Surv(time, status) ~ PARAM, data = combined_data) %>%
347
ggsurvfit() + add_risktable(),
0 commit comments