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

前端 未结 5 596
-上瘾入骨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:49

    +1 for Juba, above. This worked for me:

    $ export http_proxy=http://username:password@the-proxy.mycompany.com:80
    $ R
    > install.packages("quantmod")
    

提交回复
热议问题