简体   繁体   English

R-install_github失败

[英]R - install_github fails

I am trying to install a package from github in R, however I am getting the following error: 我正在尝试从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

I have set the RCurl options as such: 我已经将RCurl选项设置为:

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

After checking the setting: 检查设置后:

getOption("RCurlOptions")

we see.... 我们看....

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

$ssl.verifypeer
[1] FALSE

$ssl.verifyhost
[1] FALSE

Still I get the error: 我仍然收到错误:

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

any clues 任何线索

Does this work? 这样行吗? I had to change this bit of code recently from ssl.verifypeer to ssl_verifypeer 我最近不得不将这段代码从ssl.verifypeerssl_verifypeer

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

see here devtools::install_github() - Ignore SSL cert verification failure 看到这里devtools :: install_github()-忽略SSL证书验证失败

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM