-
Notifications
You must be signed in to change notification settings - Fork 78
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
Blank table in Rmarkdown inline rendering with dark-themed Rstudio #269
Comments
It seems that some other packages also have this problem: glin/reactable#21 |
Hi @kdzhang , thanks a lot for reporting this issue! Unfortunately, this one is out of my control, as this is a problem in an "upstream" package. The documentation may not be clear enough on this point, but The default table backend is
I can see 2 main avenues for solutions:
|
Hi @vincentarelbundock , thank you a lot for the very timely response! I think the And it seems that using |
There's a temporary solution here too, which involves injecting some extra CSS to the table displayed in RStudio haozhu233/kableExtra#689 (comment) |
But it's still a kableExtra issue, not a modelsummary issue. It might be possible to permanently add the CSS override in kableExtra itself as long as it doesn't break output in light themes or non-RStudio editors, etc. |
Thanks for the follow up and the alternative solution! I'll just leave the issue open to make it easier to find in case someone else runs into it. |
Yeah, it's an issue with kableExtra. There's a workaround for it here: haozhu233/kableExtra#689 (comment) (I actually have that |
Does switching to a different tab and coming back to the Rmd file update it for you? In the daily builds for version 2022.03, forcing a document refresh will make the text show correctly |
I'm opening an issue at RStudio's repository now |
Thanks a lot @andrewheiss . I don't use Rstudio, so I'm not confronted with this issue regularly, and it's kinda hard for me to diagnose, so this is very helpful. |
Yes, I just double checked...Same result if I select to 'open in a new window', the text eventually is displayed. Until I actually take this next step, all I can barely makeout is a 'negative' of the text otherwise. |
fixed upstream in kableExtra. Upcoming modelsummary 2.0.0 will use tinytable as default (breaking change), so this is no longer as relevant. |
Hi, Thanks for the great package! I encountered the following problem when I tried to use this package.
When use dark mode in R-studio, the table does not show properly:
Use a light theme solves the problem:
Please copy the output of these commands:
The text was updated successfully, but these errors were encountered: