Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 R R3.0.2 更新到 R 3.3.1 后,无法再使用 Rgui.exe 通过代理连接到 cran 进行软件包安装。RStudio 也有同样的问题。
HTTP status was '407 Proxy Authentication Required
我通过设置系统环境变量http_proxy和https_proxy控制设置Sys.getenv("http_proxy")。我还检查了防火墙设置。R3.0.2 和 R3.3.1 之间是否有任何变化使代理的使用变得复杂?
http_proxy
https_proxy
Sys.getenv("http_proxy")
我并行安装的 R3.0.2 版本正确使用了系统变量中定义的代理,http_proxy而 R3.3.1 没有。最后,我找到了一种解决方法,可以libcurl结合系统环境变量 http_proxy 和 https_proxy 在 R3.3.1 中更新我的包。
libcurl
update.packages(ask='graphics',method="libcurl",checkBuilt=TRUE)