Skip to content

Instantly share code, notes, and snippets.

@SmiddyPence
Last active February 6, 2023 11:16
Show Gist options
  • Save SmiddyPence/d404b3354f45df293f9c to your computer and use it in GitHub Desktop.
Save SmiddyPence/d404b3354f45df293f9c to your computer and use it in GitHub Desktop.
R Studio Behind a Proxy
1) Create the .Renviron file in user home. Likely /Documents on Windows (You should find a .Rhistory file there)
This file isn't created until you have close RStudio for the first time.
options(internet.info = 0)
http_proxy=http://my-proxy-server/
http_proxy_user=username:password
2) Check in RStudio Sys.getenv("http_proxy")
3) In RStudio, go to Tools > Global Options... > Packages > Uncheck - "Use Internet Explorer library/proxy for HTTP."
@bedantaguru
Copy link

Is there any guidance for Linux environment and situations where domain is involved.

@robduk
Copy link

robduk commented Feb 6, 2023

I've come across this today and I have gotten the proxy details in to the renviron.site file. I would like to carry out step 3 from the steps above 3) In RStudio, go to Tools > Global Options... > Packages > Uncheck - "Use Internet Explorer library/proxy for HTTP."

using the rprofile.site file, however the methods I found don't appear to work or are defunct. Does anyone have a way of unchecking the box without manually doing so??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment