This question is asked in: Configure proxy server in Rstudio . However, this has never been allowed.
I am a user of the version RStudio 0.99.486
and R 3.2.2
. I tried two ways to configure proxy settings in the office without success after reading a few suggestions:
FIRST WAY: Enter Rstudio as the first line: Sys.setenv (http_proxy = "HTTP: // user_name: password@proxy.company _domain.es: 8080 /")
Follow the link: -Tools, -Global Options, -Packages and unmark:
"Use Internet Library / Proxy for HTTP"
I am also not marked with the option: "Use secure download method for HTTP".
In addition, I right-clicked on the R x64 3.2.2
desktop icon and added after 1 place in the "Target" camp:
http_proxy=http://user_name:password@proxy.company_domain.es:8080/
This did not work as I received the message:
Warning in install.packages: cannot open: HTTP status was '407 Proxy authentication required'
SECOND FEED: Create a notepad with the name:
.Renviron
Filed in: "C:\Users\username\Documents"
.
The file contains the following two lines:
http_proxy=http://proxy.company_domain.es/
http_proxy_user=user_name:password
When I try to install the package, I get:
"Warning in install.packages: cannot connect to 'cran.rstudio.com' on port 80. Failed to access index for repository http://cran.rstudio.com/src/contrib "
After executing a line of code: R.home()
My R_HOME route:
"C: / Program Files / R / R-32 ~ 1.2"
.