Solution. How to install_github when there is a proxy

Solution 1:

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')

Solution 2:

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

enter image description here

Unzip the folder and install it from local machine:

devtools::install("C:/path/to/folder/ggbiplot-master")