Solution. How to install_github when there is a proxy

前端 未结 2 740
陌清茗
陌清茗 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 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')
    

提交回复
热议问题