R - install_github 失败

R - install_github fails

我正在尝试在 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

任何线索

这个有用吗?我最近不得不将这段代码从 ssl.verifypeer 更改为 ssl_verifypeer

library(httr)
set_config(config(ssl_verifypeer = 0L))

看这里devtools::install_github() - Ignore SSL cert verification failure