R - install_github失败 [英] R - install_github fails

查看:477
本文介绍了R - install_github失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 >我试图在R中安装一个来自github的包,但是我收到以下错误消息: install_github(jmp75 / rClr,build_vignettes = TRUE)
下载github repo jmp75 / rClr @ master
curl :: curl_fetch_memory(url,handle = handle)错误:
对等证书不能使用给定的CA证书进行身份验证

我已经设置了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

仍然出现错误:

 下载github repo jmp75 / rClr @master 
curl :: curl_fetch_memory(url,handle = handle)错误:
对等证书无法验证给予CA证书的证书

任何线索

解决方案

这是否工作?我不得不将这一小段代码从 ssl.verifypeer 更改为 ssl_verifypeer

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

请参阅此处 devtools :: install_github( ) - 忽略SSL证书验证失败


I am trying to install a package from github in R, however I am getting the following error:

> 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:

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

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

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

这篇关于R - install_github失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆