Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R - error installing package - Error in curl::curl_fetch_memory(url, handle = handle) : Couldn't connect to server

Tags:

r

I am trying to install the BTYplus package in R.

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

But it gives me the following error:

Downloading github repo mplatzer/BTYDplus@master Error in curl::curl_fetch_memory(url, handle = handle) : Couldn't connect to server

Did anyone had a similar issue when installing packages on R?

like image 956
elisahmendes Avatar asked Jul 31 '15 08:07

elisahmendes


2 Answers

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

like image 138
FTT Avatar answered Oct 12 '22 23:10

FTT


Setting the proxy did work for me. Here is how I have done that:

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

(and fill in your own url, port, username and password. Username and password were not necessary for me)

like image 41
Mathias711 Avatar answered Oct 13 '22 01:10

Mathias711