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

tab_row_group() failing with LateX #1872

Closed
olivroy opened this issue Sep 3, 2024 · 1 comment
Closed

tab_row_group() failing with LateX #1872

olivroy opened this issue Sep 3, 2024 · 1 comment

Comments

@olivroy
Copy link
Collaborator

olivroy commented Sep 3, 2024

library(gt)
tmp <- tibble(
  group = c("A", "A"),
  variable = c("B", "C"),
) |>
  gt(
    rowname_col = "Variable",
    row_group_as_column = TRUE
  ) |> 
  # remove full_name column
  tab_row_group(
    label = "Group",
    rows = 1:2
  )
tmp |> as_latex() 
#> Error in  if (any(colwidth_df$unspec < 1L)) { : 
#>  missing value where TRUE / FALSE is required.

The error would disappear if unspec was added here, but it produces incorrect output. (The code errors with html output)

stub_row_group <- data.frame(type = "stub_row_group", lw = 0, pt = 0)

Example from #1557

@olivroy
Copy link
Collaborator Author

olivroy commented Sep 3, 2024

Closing for now. This issue doesn't add much

@olivroy olivroy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
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