我试图从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
Run Code Online (Sandbox Code Playgroud)
我已经设置了RCurl选项:
options(RCurlOptions = c(getOption("RCurlOptions"), ssl.verifypeer = FALSE, ssl.verifyhost = FALSE ) )
Run Code Online (Sandbox Code Playgroud)
检查设置后:
getOption("RCurlOptions")
Run Code Online (Sandbox Code Playgroud)
我们看....
$cainfo
[1] "C:/_CODE/R/Library/RCurl/etc/ca-bundle.crt"
$ssl.verifypeer
[1] FALSE
$ssl.verifyhost
[1] FALSE
Run Code Online (Sandbox Code Playgroud)
我仍然得到错误:
Downloading github repo jmp75/rClr@master
Error in curl::curl_fetch_memory(url, handle = handle) :
Peer certificate cannot be authenticated with given CA certificates
Run Code Online (Sandbox Code Playgroud)
任何线索
Tom*_*rot 66
这有用吗?我不得不从最近改变这段代码ssl.verifypeer以ssl_verifypeer
library(httr)
set_config(config(ssl_verifypeer = 0L))
Run Code Online (Sandbox Code Playgroud)
请参阅此处devtools :: install_github() - 忽略SSL证书验证失败