При попытке установить какой-то пакет с Р с GitHub'с репозитория
install_github('rWBclimate', 'ropensci')
Если у вас есть следующие ошибки:
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
Эта ошибка отображается, потому что Р пытается получить доступ в Интернет через прокси.
Решение
Шаг 1. Установить инструменты разработчика пакетов
if (!require("devtools")) install.packages("devtools")
library(devtools)
Шаг 2. Установить настройки для нашего сервера (пожалуйста, обновите информацию о прокси)
library(httr)
set_config(
use_proxy(url="18.91.12.23", port=8080, username="user",password="password")
)
install_github('rWBclimate', 'ropensci')