diff --git a/tests/testthat/_snaps/add_p.tbl_summary.md b/tests/testthat/_snaps/add_p.tbl_summary.md index 4236a0fc3c..f3a10a14c5 100644 --- a/tests/testthat/_snaps/add_p.tbl_summary.md +++ b/tests/testthat/_snaps/add_p.tbl_summary.md @@ -135,19 +135,3 @@ 7 Tumor Response >0.9 8 Unknown ---- - - Code - as.data.frame(add_p(tbl_summary(trial, by = trt, include = c(age, marker, - response), type = all_continuous() ~ "continuous2"), group = response)) - Output - **Characteristic** **Drug A** \nN = 98 **Drug B** \nN = 102 **p-value** - 1 Age >0.9 - 2 Median (Q1, Q3) 46 (37, 60) 48 (39, 56) - 3 Unknown 7 4 - 4 Marker Level (ng/mL) 0.2 - 5 Median (Q1, Q3) 0.84 (0.23, 1.60) 0.52 (0.18, 1.21) - 6 Unknown 6 4 - 7 Tumor Response 28 (29%) 33 (34%) 0.5 - 8 Unknown 3 4 - diff --git a/tests/testthat/test-add_p.tbl_summary.R b/tests/testthat/test-add_p.tbl_summary.R index 77e7afbaf6..84d671970d 100644 --- a/tests/testthat/test-add_p.tbl_summary.R +++ b/tests/testthat/test-add_p.tbl_summary.R @@ -47,10 +47,4 @@ test_that("add_p.tbl_summary() creates output without error/warning for continuo as.data.frame(col_labels = FALSE) |> select(-all_stat_cols()) ) - - expect_snapshot( - tbl_summary(trial, by = trt, include = c(age, marker, response), type = all_continuous() ~ "continuous2") |> - add_p(group = response) |> - as.data.frame() - ) })