tests/testthat/test-plot.R

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

test_that("plot.tbl_regression() works", {
  expect_error(
    lm(age ~ trt, trial) %>%
      tbl_regression() %>%
      plot(remove_reference_rows = TRUE),
    NA
  )
})

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.