Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with row_group_as_column = TRUE + row names #1793

Open
15 tasks
olivroy opened this issue Jul 16, 2024 · 0 comments
Open
15 tasks

Issues with row_group_as_column = TRUE + row names #1793

olivroy opened this issue Jul 16, 2024 · 0 comments
Assignees

Comments

@olivroy
Copy link
Collaborator

olivroy commented Jul 16, 2024

Stub creation seems quite affected by row names and row groups. rowname_col, groupname_col and row_group.as_columns in general.

This is a list of issues that are related to this. Fixing the logic in dt_ creation may fix many issues automatically!

multiple row groups

From #1552 (comment)

This simple example doesn't render due the alignment not being properly set.

# the error is not useful as the error occurs before.
# instead of being stub_1 , var is c("trim", "mfr")

gt::gtcars |> dplyr::group_by(trim, mfr) |> gt::gt(row_group_as_column = T)
#> Error in sprintf("<%s %s%sclass=\"gt_row %s%s\"%s>%s</%s>", elements,  :
#>  Can't recycle elements
#> 
#> Dans boxhead$var == var :
#> Wrong size ( var has length 2)

@rich-iannone if you have any clue on where to fix this, it would be great. It feels like a well-placed change would possibly fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants