RStudio Proxy Configuration on Windows

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.486and 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.2desktop 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"

.

+4
3

. . , Internet Explorer .

, .Renviron -,

http_proxy=http://proxy.company_domain.es:8080/
http_proxy_user=user_name:password

http_proxy_user=ask

- ,

+3

, (R3.3.1):

update.packages(ask='graphics',method="libcurl",checkBuilt=TRUE)

+1

, . , . , Windows 7.

, , R , .Renviron .Rprofile R.home(), Windows.

( ) R.home() Windows Documents .

path.expand("~/")

which by default refers to the My Documents folder.

Therefore, place the .Renviron file with the content that you have already disabled the Internet Explorer option in RStudio and make sure that you place the file in My Documents.

Hope this helps!

0
source

Source: https://habr.com/ru/post/1612603/


All Articles