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?
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)
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)
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 .