tests/testthat/test-tbl_survival.R

skip_on_cran()
skip_if_not(broom.helpers::.assert_package("survival", pkg_search = "gtsummary", boolean = TRUE))

test_that("tbl_survival() deprecated", {
  lifecycle::expect_defunct(
    survival::survfit(survival::Surv(ttdeath, death) ~ trt, trial) %>%
      tbl_survival()
  )
})

Try the gtsummary package in your browser

Any scripts or data that you put into this service are public.

gtsummary documentation built on July 26, 2023, 5:27 p.m.