How to install R packages via proxy [user + password]

前端 未结 5 594
-上瘾入骨i
-上瘾入骨i 2020-12-17 03:43

I need authentication to use internet, say these are my variables:

  1. Proxy : 1ncproxy1
  2. Port : 80
  3. Loggin : MyLoGiN
  4. Pass : MyPaSs
  5. <
5条回答
  •  一生所求
    2020-12-17 03:55

    I tried to install swirl package, and had the same problem - proxy with authorisation.

    After some experiments i found decision. May be my answer will help for anybody. On Windows 7 :

    1. set 1 or more (if ou need) env variables http_proxy (https_proxy and ftp_proxy if you need) (If you dont know how - read there http://www.computerhope.com/issues/ch000549.htm ) Its look like that env variables for proxy

    2. format http_proxy="http://Proxyusername:ProxyUserPassw@proxyServName:ProxyPort"

    3. Use '@' instead of %40

    4. In RStudio Tools->Global Options->Packages release check box "Use Internet Explorer library /proxy for HTTP"

提交回复
热议问题