Solution. How to install_github when there is a proxy

前端 未结 2 683
陌清茗
陌清茗 2020-11-28 03:34

When you try to install some package of R from GitHub\'s repository

install_github(\'rWBclimate\', \'ropensci\')

If you have the following

相关标签:
2条回答
  • 2020-11-28 03:57

    If setting proxy configuration does not work (as was the case for me), one can download the package from github to local machine:

    Unzip the folder and install it from local machine:

    devtools::install("C:/path/to/folder/ggbiplot-master")
    
    0 讨论(0)
  • 2020-11-28 04:04

    SOLUTION

    Step 1. Install devtools packages

    if (!require("devtools")) install.packages("devtools")
    library(devtools)
    

    Step 2. Set configuration for our proxy (Please update your information proxy)

    library(httr)
    set_config(
      use_proxy(url="18.91.12.23", port=8080, username="user",password="password")
    )
    install_github('rWBclimate', 'ropensci')
    
    0 讨论(0)
提交回复
热议问题