ddsjoberg/gtsummary

tbl_summary() does not work in gtsummary version 2.0.2

robertprince opened this issue · 1 comments

trial2 <- trial |> select(trt, age, grade)

trial2 |> tbl_summary()

If you have found a bug, please briefly describe your problem and what output you expect.

INCLUDE a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex. It'll take minutes to master creating a reprex.
ISSUES WITHOUT A REPRODUCIBLE EXAMPLE WILL LIKELY BE CLOSED WITHOUT A RESPONSE.


Error in dplyr::mutate():
ℹ In argument: stat = as.character(...).
Caused by error in glue_data():
! is.environment(.envir) is not TRUE
Backtrace:

  1. gtsummary::tbl_summary(trial2)
  2. glue::glue(...)
  3. glue::glue_data(...)
  4. base::stopifnot(is.environment(.envir))
  5. base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p)))
library(gtsummary)
trial2 <- trial |> select(trt, age, grade)

trial2 |> tbl_summary()

I have upgraded the gtsummary from version 2.0.1 to version 2.0.2 and since then tbl_summary() has not worked. This is rather urgent as I have to present the tables urgently.