RStudio Proxy Configuration on Windows

好久不见. 提交于 2019-11-30 23:43:16

Thank you for your question. It helped me to resolve my issue. I had to unmark the option to use the settings from the Internet Explorer and restart.

Maybe your .Renviron does not contain the proxy port, you have to write

http_proxy=http://proxy.company_domain.es:8080/
http_proxy_user=user_name:password

If you specify

http_proxy_user=ask

it should prompt you for user name and password - then you know that the file is read

I also nearly gave up on this problem until I found this simple solution (R3.3.1):

  1. specify the system environment variables (in Windows Advanced System Settings add the variables http_proxy and https_proxy and set it to http://user_name:password@proxy.company_domain.es:8080/ with your specific settings)

  2. in the R console type

update.packages(ask='graphics',method="libcurl",checkBuilt=TRUE)

I struggled with this when I initially started working behind a proxy. Here's what I believe is to be the solution. Disclaimer, I am working on a Windows 7 Workstation.

Even though when you read through the documentation, R suggests that .Renviron and .Rprofile should be in R.home(), that is not the case for Windows.

By default (I believe), the R.home() for Windows is actually the Documents folder for your user. You can check that with

path.expand("~/")

which defaults to "My Documents" directory.

Therefore, do place the .Renviron file with the content you already have, disable the Internet Explorer option in RStudio, and make sure you place the file in "My Documents."

Hope it helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!