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

Bug Report: Ruler appears in the wrong place using tbl_cross() for Quarto html output #1904

Closed
snhansen opened this issue Aug 14, 2024 · 4 comments

Comments

@snhansen
Copy link

Consider the example below.

---
format: html
---

```{r}
library(gtsummary)
tbl_cross(trial, row = trt, col = response)
```

When rendering this with Quarto, the horizontal ruler appears above "Tumor Response" and not below as it should. I'm not sure if this is an issue with gtsummary, gt og Quarto, so forgive me if I'm posting in the wrong place.

image

This is using gtsummary v. 2.0.0 and Quarto v. 1.5.56 on Windows.

@Melkiades
Copy link
Collaborator

@ddsjoberg, could it be the same issue as #1896?

@ddsjoberg
Copy link
Owner

@ddsjoberg, could it be the same issue as #1896?

My guess this is just a gt table rendering with Quarto issue.

@snhansen can you test another table just using gt ? I think something like this would be sufficient.

mtcars[1:3, 1:4] |> 
  gt::gt() |> 
  gt::tab_spanner(label = gt::md("Header"), columns = 2:3)

@snhansen
Copy link
Author

@ddsjoberg: You're right, this seems like a gt issue. Your example renders like this:

image

Should I submit a bug report on the Quarto repo?

@ddsjoberg
Copy link
Owner

Should I submit a bug report on the Quarto repo?

@snhansen I think that is a good plan! I would include an example of what the table looks like when it's rendered interactively, how it looks with R markdown, and then showing the bug with Quarto.

Thanks!

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

3 participants