I'm trying to save a kableExtra
table, but I only managed to do so by clicking on the "save" button above the image (png or jpeg), which is not ideal...this is my case
- Ideally, I'd like to export it as a Word file (note that knitting to Word in r-markdown is NOT working)
- I'd also like to be able to export to .png, but this option to save as pdf or png is working
If I try the same thing, I get:
packageVersion("kableExtra")
[1] ‘1.3.4’
> library(webshot)
Warning message:
package ‘webshot’ was built under R version 4.1.3
> dt <- mtcars[1:5, 1:6]
>
> kableExtra::kbl(dt, caption="Table") %>%
+ kableExtra::kable_classic(full_width = F, html_font = "Cambria") %>%
+ kableExtra::save_kable("my_latex_table.png") # altern
Could not load c:%5CUsers%5Claris%5CAppData%5CLocal%5CTemp%5CRtmpm0UVE0%5Cmy_latex_table524420567fce.html
Error in webshot::webshot(file_temp_html, file, ...) :
webshot.js returned failure value: 1
Any ideas? Ideally, I'd like to be able to export to both .doc and .png