• Welcome to LiuJason's Blog!

Linux安装export包|解决package"export" is not available|R语言|CentOS7为例

未分类 Jason 4 years ago (2020-08-01) 669 Views 0 Comments QR code of this page
文章目录[隐藏]

前言

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
Like (2)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址