![](/img/trans.png)
[英]flextable::save_as_image() includes path to image when Rmarkdown knit to Word
[英]How to display special characters in flextable save_as_image routine
library(flextable)
library(officer)
ft <- flextable(
head(mtcars),
col_keys = c("mpg"))
ft <- set_header_labels(ft, mpg = "n\u00b0")
ft
library(webshot)
if( require("webshot") ){
save_as_image(x = ft, path = "./test.png")
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.