-
Notifications
You must be signed in to change notification settings - Fork 323
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
Labeling of gt-tables is broken #5657
Comments
Thanks for the report! I can reproduce on the latest development version. For example, the following works: ---
format: html
---
```{r}
#| label: tbl-cars
library(gt)
gt(mtcars)
``` I believe it's related to #5551 changes regarding the overhaul "refactoring" of the cross-reference feature (#4944). |
Side note, should some tests be added for |
I believe it is tracked by @rich-iannone and he plans to add some (if not already) on gt side to cover a vast variations of tables. Also we have some basic tests in our smoke-all part (Drawback of the smoke-all folder is that they are not organized by topic. We could regroup. ):
It seems they are passing as we did not detect the issue before 🤔 |
This in fact gave us the hint that it is an issue with gt - we are not testing with gt 0.8 and now 0.9 is out. So issue is with gt 0.9 - @snhansen installing gt 0.8 solve the issue for me, so my guess is that you are using 0.9 too. Using Quarto 1.3 works with both version. @rich-iannone FYI as related to gt |
@cderv: Ah, yes. Same behaviour here. Didn't occur to me that it could be related to gt. |
It's still a quarto bug; we shouldn't be crashing at all. Let me investigate. |
The issue is not with gt; it's that our tests were not covering I've tested a local fix with gt 0.9.0, but I'm not sure how to make our test suite cover multiple R package versions. |
What changed in |
The main "issue" is what packages and how many version to you want to test against? |
I found a workaround; I used the 0.9.0 output directly on the qmd input. That triggered the bug independently of the library.
That's not the point here, because this isn't a GT bug. This was literally me using |
In any case, sorry for the bug! We have a fix and regression test now. |
Bug description
With the newest Quarto version (1.4.84) on Windows, I now get an error when trying to label a table created with
gt()
. A minimal example:which results in this error:
Checklist
quarto check
so we know which version of quarto and its dependencies you're running.The text was updated successfully, but these errors were encountered: