R - install_github失败

时间:2015-07-08 12:52:49

标签: r github rcurl

我正在尝试从R中的github安装一个包,但是我收到以下错误:

> install_github("jmp75/rClr", build_vignettes=TRUE)
Downloading github repo jmp75/rClr@master
Error in curl::curl_fetch_memory(url, handle = handle) : 
Peer certificate cannot be authenticated with given CA certificates

我已经设置了RCurl选项:

options(RCurlOptions = c(getOption("RCurlOptions"),   ssl.verifypeer = FALSE,  ssl.verifyhost = FALSE ) )

检查设置后:

getOption("RCurlOptions")
我们看到......

$cainfo
[1] "C:/_CODE/R/Library/RCurl/etc/ca-bundle.crt"

$ssl.verifypeer
[1] FALSE

$ssl.verifyhost
[1] FALSE

我仍然收到错误:

Downloading github repo jmp75/rClr@master
Error in curl::curl_fetch_memory(url, handle = handle) : 
Peer certificate cannot be authenticated with given CA certificates

任何线索

1 个答案:

答案 0 :(得分:65)

这有用吗?我最近必须将这段代码从13973 更改为ssl.verifypeer

ssl_verifypeer

devtools::install_github() - Ignore SSL cert verification failure