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

Grid: Bad indices with group_tt() #366

Closed
vincentarelbundock opened this issue Oct 27, 2024 · 1 comment
Closed

Grid: Bad indices with group_tt() #366

vincentarelbundock opened this issue Oct 27, 2024 · 1 comment

Comments

@vincentarelbundock
Copy link
Owner

Last row has no italic:

pkgload::load_all()
k <- mtcars[1:4, 1:4]
tab <- tt(k) |>
    format_tt(num_fmt = "decimal", num_zero = TRUE, digits = 3) |>
    style_tt(i = 1:3, j = 1, bold = TRUE) |>
    style_tt(j = 2, italic = TRUE) |>
    # problem is that group_tt tries to indent.
    group_tt(i = list("hello world" = 2), j = list("foo" = 1:2, "bar" = 3:4), italic = TRUE)
tab
@vincentarelbundock
Copy link
Owner Author

This is fixed in

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

No branches or pull requests

1 participant