【发布时间】:2023-07-28 10:59:01
【问题描述】:
我正在尝试让 devtools::install_github() 在 Windows 7 上的公司代理后面工作。
到目前为止,我必须执行以下操作:
> library(httr)
> library(devtools)
> set_config(use_proxy("123.123.123.123",8080))
> devtools::install_github("rstudio/ggvis")
Installing github repo ggvis/master from rstudio
Downloading master.zip from https://github.com/rstudio/ggvis/archive/master.zip
Error in function (type, msg, asError = TRUE) :
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
显然,我们有某种证书服务器用我们自己的公司 SSL 证书替换 SSL 证书(通过转到 https://github.com 并检查证书来确认)。
无论如何,只是想知道是否有办法忽略该证书错误并继续安装?
【问题讨论】:
-
这可能不是最好的解决方案,但如果一切都失败了,从 github repo 下载 zip 并在本地安装是一个可接受的解决方案吗?
-
好主意 - 我什至没有考虑过。仍然非常希望不必这样做。
-
试试
set_config( config( ssl.verifypeer = 0L ) ) -
它有效。谢谢!!你想把它变成答案吗?
-
@jdharrison 找不到函数“set_config”