tests/testthat/test-as_forest_plot.R

library(gtsummary)
library(survival)

test_that("as_forest_plot() works", {
  expect_error(
    tbl_uvregression(
      trial[c("response", "age", "grade")],
      method = glm,
      y = response,
      method.args = list(family = binomial),
      exponentiate = TRUE
    ) %>%
      as_forest_plot(),
    NA
  )
})
ddsjoberg/bstfun documentation built on July 4, 2023, 10:59 a.m.