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

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

问题描述

我正在尝试在 R 中安装来自 github 的软件包,但是出现以下错误:

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

我已将 RCurl 选项设置为:

I have set the RCurl options as such:

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

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

见这里devtools::install_github() - 忽略 SSL 证书验证失败

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

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