Solution. How to install_github when there is a proxy

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

install_github('rWBclimate', 'ropensci')

If you have the following error:

  • cannot push to github: everything up-to-date
  • How to revert my remote git repository back to a certain commit?
  • How to re-open an issue in github?
  • How to push/deploy project on digital ocean without git clone
  • Git duplication - receive pack not found
  • Github desktop sync spins indefinitely
  • Installing github repo(s) rWBclimate/master from ropensci
    Downloading from
    Error in function (type, msg, asError = TRUE)  :
    Could not resolve host:; Host not found, try again

    This error is displayed because R is trying to access on Intenet through a proxy.

  • How to merge a successful build of a pull request using a Jenkinsfile
  • How to disable chome's “Search GitHub” feature?
  • Why do my GitHub commits always show as unknown author?
  • using a private github repository to host a private maven artifact
  • BigQuery: When is GHTorrent refreshed and how to get up to date information?
  • Git Config excludesfile for just a branch
  • One Solution collect form web for “Solution. How to install_github when there is a proxy”


    Step 1. Install devtools packages

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

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

      use_proxy(url="", port=8080, username="user",password="password")
    install_github('rWBclimate', 'ropensci')
    Git Baby is a git and github fan, let's start git clone.