As the doctor gone rogue

May 27, 2013

Configuring R to Use an HTTP Proxy / FAQ / Knowledge Base – RStudio Support

Filed under: R — hypotheses @ 1:11 am

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.

Blog at WordPress.com.