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


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

4 thoughts on “Configuring R to Use an HTTP Proxy / FAQ / Knowledge Base – RStudio Support”

  1. 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.

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.