前言
export包在R里还是非常常用的,可以导出各种格式的文件非常方便。
例如:
graph2ppt导出PPT,graph2doc导出Word文档,table2excel导出到Excel表格,具体可以自己去帮助文档看:
?graph2ppt
?graph2doc
?graph2svg
?graph2png
?table2ppt
?table2tex
?table2excel
?table2doc
?table2html
然而安装的时候却出现了失败提示,以前一直没有问题的….
install.packages("export")
package"export" is not available(for R version 3.6.3)
访问CRAN的官网(https://cran.r-project.org/web/packages/export/index.html)发现,从2020年2月起CRAN把export移出了….
Package ‘export’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2020-02-11 as check problems were not corrected in time.
Please use the canonical form https://CRAN.R-project.org/package=export to link to this page.
所以需要通过github手动安装,具体方法如下:
干货教程
install.packages("officer")
install.packages("rvg")
install.packages("openxlsx")
install.packages("ggplot2")
install.packages("flextable")
install.packages("xtable")
install.packages("rgl")
install.packages("stargazer")
install.packages("tikzDevice")
install.packages("xml2")
install.packages("broom")
install.packages("devtools")
devtools::install_github("tomwenseleers/export")
This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/838.html