You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you seem to have summary_rows on the mind right now . . . cols_align_decimal() fails for accounting formatting on the summary rows when summary_rows are included. Grouping without adding summary rows works as intended.
Reproducible example
Reprexes include gtsave() to get the correct representation, since the normal reprex output is not indicative.
1. Grouped without summary rows (working correctly):
I just worked on making summary_rows() better in #1159 so this is a good follow up to that work. I'm thinking that cols_align_decimal() has to become lazy (do the alignment work after all the parts are in place), and have an option to include summary cells (with the default being TRUE).
Thanks for reporting this! It was easy to miss but having consistent formatting across parts is very important indeed.
Since you seem to have
summary_rows
on the mind right now . . .cols_align_decimal()
fails for accounting formatting on the summary rows whensummary_rows
are included. Grouping without adding summary rows works as intended.Reproducible example
Reprexes include
gtsave()
to get the correct representation, since the normal reprex output is not indicative.1. Grouped without summary rows (working correctly):
Created on 2022-12-09 with reprex v2.0.2
2. Grouped with summary rows, 2 decimals (bug)
Created on 2022-12-09 with reprex v2.0.2
Same outcome when
decimals = 0
, which as you know is my pet use case, andgrand_summary_rows()
seems to present the same issue.Session info
The text was updated successfully, but these errors were encountered: