Closed onecare-business-intelligence closed 3 weeks ago
This question was also posted on StackOverflow. You should mention that you were given a workaround there: https://stackoverflow.com/a/78977096.
Does it work if you use kbl()
instead of kable()
on the first line? The help page should be updated to do that.
kbl(mtcars[1:5, ], "html") %>% kable_styling("striped") %>% row_spec(1, color = "red") %>% save_kable('test.png')
Returns the same error as when I use kable().
Error: rsession-utf8.exe: GeometryDoesNotContainImage
Thanks for the test. I don't see the issue on a Mac, using Quarto or RMarkdown. I'm using the same versions of those packages as you. The version of Chrome is probably relevant because chromote uses it; I'm using Google Chrome 128.0.6613.137 .
Have updated to Chrome Version 128.0.6613.138 (Official Build) (64-bit) and re-run the code on Windows 11 in Quarto and error remains. Error: rsession-utf8.exe: GeometryDoesNotContainImage
Actually "rsession-utf8.exe" is part of RStudio or maybe Quarto. So this looks like an RStudio issue, not a kableExtra
issue.
Where might I post a bug report for this issue if it isn't a kableExtra issue? Thank you,
I would like to save a table generated with kableExtra as a PNG file in a quarto report. I'm using the example provided in the help file of save_kable
And receive the following error
Error: rsession-utf8.exe: GeometryDoesNotContainImage `C:\test.png' @ warning/attribute.c/GetImageBoundingBox/534
I'm using R version 4.4.0 (2024-04-24 ucrt) in RStudio with the following libraries:
kableextra 1.4 chromote 0.3.1 webshot 0.5.5 webshot2 0.1.1
Windows 11.