ddsjoberg / gtsummary

Presentation-Ready Data Summary and Analytic Result Tables
http://www.danieldsjoberg.com/gtsummary
Other
986 stars 110 forks source link

`quiet` is passed as NULL when in `tbl_strata` #1755

Closed Melkiades closed 1 week ago

Melkiades commented 1 week ago
library(gtsummary)
trial |>
  tbl_strata(
    strata = c(trt, grade),
    ~tbl_wide_summary(.x, include = c(age, marker)), .combine_with = "tbl_stack"
  )
#> Error in `tbl_strata()`:
#> ! The `quiet` argument must be a scalar with class <logical>, not NULL.
trial |>
  tbl_strata(
    strata = c(trt, grade),
    ~tbl_wide_summary(.x, include = c(age, marker)), .combine_with = "tbl_stack",
    .quiet = FALSE
  )
#> Warning: The `.quiet` argument of `tbl_strata()` is deprecated as of gtsummary 2.0.0.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.

Created on 2024-06-21 with reprex v2.1.0

Btw the style insertion from reprex seems to be broken, is there a fix to that? or maybe a trick with an export?

ddsjoberg commented 1 week ago

resolved in https://github.com/ddsjoberg/gtsummary/pull/1757