GSK-Biostatistics / tfrmt

r package for formatting tables
https://gsk-biostatistics.github.io/tfrmt/
Other
70 stars 8 forks source link

Deprecation warning from use of `dplyr::summarise` #468

Closed bzkrouse closed 3 months ago

bzkrouse commented 3 months ago

This message will occasionally appear if the body_plan is incomplete (multiple param listed for the same group/label, indicating frmt_combine's are needed) and tfrmt makes suggestions to the user:

Warning message:
Returning more (or less) than 1 row per `summarise()` group was deprecated in dplyr 1.1.0.
ℹ Please use `reframe()` instead.
ℹ When switching from `summarise()` to `reframe()`, remember that `reframe()` always returns an ungrouped data frame and adjust
  accordingly.
ℹ The deprecated feature was likely used in the tfrmt package.

Originates during the pivot_wider step of apply_tfrmt here: https://github.com/GSK-Biostatistics/tfrmt/blob/7c70d2b1aab50eb8aa418fc4888b8927464dfd3a/R/apply_tfrmt.R#L351