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:

  • Markdown: Problems with numbered list paragraphs containing code element
  • How to add new posts to github pages without installing Jekyll locally
  • Git clone with password @
  • Broken links and layout after referring custom domain to jekyll-generated github project page
  • Pushing to Git returning Error Code 403 fatal
  • Move git commit to new branch
  • Installing github repo(s) rWBclimate/master from ropensci
    Downloading rWBclimate.zip from https://github.com/ropensci/rWBclimate/archive/master.zip
    Error in function (type, msg, asError = TRUE)  :
    Could not resolve host: github.com; Host not found, try again
    

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

  • git push origin hangs after the total message
  • Why is Github asking for username/password when following the instructions on screen and pushing a new repo?
  • Portable Development Environment and Git
  • Can I convert my TODO to a git bug?
  • Github account authenticated with token in intellij
  • How do you publish a typescript website to GitHub Pages using Visual Studio?
  • One Solution collect form web for “Solution. How to install_github when there is a proxy”

    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')
    
    Git Baby is a git and github fan, let's start git clone.