gpt4 book ai didi

R - install_github 失败

转载 作者:行者123 更新时间:2023-12-02 05:58:55 25 4
gpt4 key购买 nike

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

关于R - install_github 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31293325/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com