I want to install the R-package Leaflet on my R-server(linux) from GitHub because it is more up-to-date than the current CRAN-version. Iām using the following R-script to do this:
library(httr)
library(devtools)
set_config(use_proxy(url = "xxx", port = xxxx))
devtools::install_github("rstudio/leaflet")
But it is showing the following error:
if(!require('devtools')) install.packages('devtools') Loading required package: devtools devtools::install_github('rstudio/leaflet') Downloading GitHub repo rstudio/leaflet@master from URL https://api.github.com/repos/rstudio/leaflet/zipball/master Error in curl::curl_fetch_memory(url, handle = handle) : Couldn't connect to server Calls: <Anonymous> ... request_fetch -> request_fetch.write_memory -> <Anonymous> -> .Call Execution halted
When I do install packages from CRAN, there are no issues at all. But I need the newest version of Leaflet which is only at GitHub...
Is there a solution to fix this? Is it because I'm using a proxy?
Regards,
Joris