报错信息:

devtools::install_github("dengfei2013/GS")
Installation failed: An unknown option was passed in to libcurl

解决方法:

  • 下载github中的zip软件包, 在Centos中解压:
unzip xx.zip

解压完成后,会产生xx文件夹.

  • 进入R中, 载入devtools
library(devtools)
build("xx")

结果

 build("xx")
'/opt/R-3.4.4/build/lib64/R/bin/R' --no-site-file --no-environ --no-save  \
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘xx.tar.gz’
  • 按照此包
install.packages("xx.tar.gz")

大功告成

欢迎关注我们
Centos 中devtools 包中的install_github函数报错 不能安装github中的软件包_github