簡體   English   中英

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.verifypeerssl_verifypeer

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

看到這里devtools :: install_github()-忽略SSL證書驗證失敗

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM