如何将Kable表作为PNG保存?
我正在使用RmarkDown进行HTML输出。 我正在尝试将数据集保存为Kable Table PNG,然后以后使用它。它不会失败或产生错误,而是在指定路径中保存任何PNG文件。有什么想法吗?
library(tidyverse)
library(knitr)
library(kableExtra)
dataset_kable <- dataset %>% select(ID, breed, location) %>%
Kable() %>%
Kable_styling(latex_option=c(“scale_down”,”HOLD_position”))
save_kable(x=dataset_kable, file=“PATH/dataset_kable.png)
没有出现错误,只是不在文件资源管理器文件夹中。
I am making an html output with rmarkdown.
I’m trying to save a dataset as a kable table png and use it later. It is not failing or producing an error but is not saving any png file in the specified path. Any ideas why?
library(tidyverse)
library(knitr)
library(kableExtra)
dataset_kable <- dataset %>% select(ID, breed, location) %>%
Kable() %>%
Kable_styling(latex_option=c(“scale_down”,”HOLD_position”))
save_kable(x=dataset_kable, file=“PATH/dataset_kable.png)
No error shows up, it’s just not in the file explorer folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论