数据-R语言-图表-决策-Linux-PythonCook R数据科学与R语言

【r<-方案】如果不能使用install_github()

2018-05-08  本文已影响18人  王诗翔

在服务器安装maftools包时报错:

> devtools::install_github("PoisonAlien/maftools")
Installation failed: error setting certificate verify locations:
  CAfile: microsoft-r-cacert.pem
  CApath: none

stackoverflow上不少人说重装RCurl包即可,但没有解决。

系统是CentOS,没有root权限,用另外一种方法——即本地安装,来跳过install_github()环节。

先使用git clone克隆安装包,然后R CMD build 包名进行构建,然后R CMD install 包名.tar.gz进行安装。

或使用

install.packages(<pathtopackage>, repos = NULL, type="source")
上一篇 下一篇

猜你喜欢

热点阅读