Feel like I’ve done this a million time since I came back to work in Thailand. This should work for R user not using R-studio as well. Configuring R to Use an HTTP Proxy / FAQ / Knowledge Base – RStudio Support. In brief, you can use the command template below in each of the R session.
Sys.setenv(http_proxy="http://user:password@proxy_server:port")
I found that this is more convenient for me who carry my laptop around. And the only place that won’t let me work at ease is when I am at the office. So, the work around will need to be used occasionally.
If you would like to check your current proxy setting, you can do
Sys.getenv("http_proxy")
*Note*: Please note the capital “S” at the beginning of the command follows by all small letters afterwards.
thanks!
Thank You so much. Worked like charm.
Hi Thanks for this tutorial. I have specific problem.
My terminal commands are working fine with following codes (IP masked)
export https_proxy=”https://domain\user:password@172.02.07.5:8080″
however when I try to set it though R it is not happening
Sys.setenv(http_proxy=”http://domain\\user:password@172.02.07.5:8080″);
Sys.setenv(HTTPS_PROXY=”https://domain\\user:password@172.02.07.5:8080″)
(using Centos with RStudio server)
Kindly suggest if you have any idea.
may be just tried changing “HTTPS_PROXY” to a small letter? This should be the same environmental variables on your server.