R - error installation package - Error in curl :: curl_fetch_memory (url, handle = handle): Could not connect to the server

I am trying to install the BTYplus package in R.

devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE) library(BTYDplus) demo(package="BTYDplus") 

But this gives me the following error:

Download github repo mplatzer / BTYDplus @master Error in curl :: curl_fetch_memory (url, handle = handle): Could not connect to server

Has anyone had a similar problem installing packages on R?

+5
source share
3 answers

Setting proxies worked for me. Here is how I did it:

 library(httr) set_config(use_proxy(url='http://my.proxy', port, username, password)) 

(and fill in your own URL, port, username and password. I do not need a username and password)

+3
source

You can download the library from outside and then import it into R: Download from: https://github.com/mplatzer/BTYDplus import from: Tools> Install Packages / Archive Archive File (.zip; .tar.gz)

+2
source

For me, this is not a proxy problem, instead, the following lines solved my problem:

 library(httr) set_config(config(ssl_verifypeer = 0L)) 

Found it here .

0
source

All Articles