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.

Advertisements

2 Comments »

  1. thanks!

    Comment by tatan — June 2, 2015 @ 3:38 pm

  2. Thanks!

    Comment by seleznev — May 25, 2017 @ 9:03 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: