Issues with devtools::install_github()

1,514 views
Skip to first unread message

Danilo Freire

unread,
Oct 30, 2014, 4:57:30 PM10/30/14
to rro...@googlegroups.com
Hello everyone,

I'm really happy with RRO 8, but I'm having some issues when I try to install any package from Github. I'm using Ubuntu 14.04

An example: 

> library(devtools)
> devtools::install_github("twitter/BreakoutDetection")
Downloading github repo twitter/BreakoutDetection@master
Error in system(full, intern = quiet, ignore.stderr = quiet, ...) : 
  error in running command
> install_github("rasmusab/beepr")
Downloading github repo rasmusab/beepr@master
Error in system(full, intern = quiet, ignore.stderr = quiet, ...) : 
  error in running command
> Sys.info()
                                      sysname 
                                      "Linux" 
                                      release 
                          "3.13.0-37-generic" 
                                      version 
"#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014" 
                                     nodename 
                              "Inspiron-3520" 
                                      machine 
                                     "x86_64" 
                                        login 
                                    "unknown" 
                                         user 
                                      "sussa" 
                               effective_user 
                                      "sussa" 

Any suggestion or ideas? Thanks!

Best,
Danilo

Andrie de Vries

unread,
Oct 31, 2014, 3:41:20 AM10/31/14
to rro...@googlegroups.com
Hi, Danilo

Thank you for trying RRO and I'm glad you like it.

I tried your code in a Ubuntu 14.04 virtual machine and both packages installed without a problem, using the code you provided.

It seems unlikely to be the cause of your problem, but I had to install some Linux system dependencies first. Specifically, devtools requires RCurl, and RCurl depends on the linux libcurl-dev library.

To install this, I used the following in Linux:

sudo apt-get update
sudo apt-get install libcurl4-openssl-dev

Then devtools installed without a problem and my github packages installed.

It's a shot in the dark, but let me know what you find.

Regards

Andrie

Get a 14 Day Free Trial of Revolution R Enterprise on AWS Marketplace

Danilo Freire

unread,
Oct 31, 2014, 5:09:04 PM10/31/14
to rro...@googlegroups.com
Hello, Andrie

Thanks a lot for the reply. Unfortunately, your tips didn't solve the problem. I updated my system, but both libcurl4-openssl-dev and RCurl were already installed. I reinstalled them, but I still cannot download the packages using devtools. 

Is there any other information that I can provide which might be of help? 

Thanks again,
Danilo

Danilo Freire

unread,
Nov 11, 2014, 6:21:46 PM11/11/14
to rro...@googlegroups.com
Hey there,

Sorry for bugging you guys again, but unfortunately I couldn't find a solution to the issue. It seems that other users also have the problem: https://github.com/twitter/BreakoutDetection/issues/6

Thanks again,
Danilo

Andrie de Vries

unread,
Nov 12, 2014, 5:50:45 AM11/12/14
to rro...@googlegroups.com
Hi, Danilo


Your previous link indicates that the other user is working on a different locale.

Can you please provide the results of sessionInfo() so we can see your locale settings?

Andrie

Revolution R Plus

Subscribe to Technical Support & Indemnification for R

Chris Mosetick

unread,
Nov 12, 2014, 6:18:50 AM11/12/14
to rro...@googlegroups.com
Hi Danilo,
Where ever you are running RRO on Ubuntu 14.04, please make sure that system package g++ is installed:
apt-get install g++
Then you can use devtools to install BreakoutDetection with success.

cheers,
Chris

Andrie de Vries

unread,
Nov 12, 2014, 6:22:54 AM11/12/14
to rro...@googlegroups.com
Hi, Danilo

One of our system engineers tried to reproduce your problem using Ubuntu-14.04 (https://github.com/RevolutionAnalytics/RRO/issues/31#issuecomment-62703364)

The packages (and their dependencies) you are trying to install require the g++ compiler

Please try 

apt-get install g++

Then try to install from github again, and let us know what happens.

Andrie

fl...@tiscalinet.it

unread,
Nov 12, 2014, 10:03:38 AM11/12/14
to rro...@googlegroups.com
I got the same error by trying to install the package "rvest" with

> install_github("hadley/rvest")

My system is very similar to Danilo's (ubuntu 14.04, RRO 8, etc.). Then I tried:
 
> install_git("git://github.com/hadley/rvest")

and everything went fine!

Regards,
Antonio.

Taavi Päll

unread,
Nov 13, 2014, 3:05:50 AM11/13/14
to rro...@googlegroups.com
Hi,
I installed Revolution R Open 8.0 beta under ubuntu 12.04 and started to receive error with install_github(), fortunately install_git() works.
Best regards,
Taavi

> devtools::install_github("smbache/magrittr", ref = "dev")
Downloading github repo smbache/magrittr@dev
Error in system(full, intern = quiet, ignore.stderr = quiet, ...) : 
  error in running command

> devtools::install_git("git://github.com/smbache/magrittr.git", branch = "dev")
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] devtools_1.6.1 httr_0.5       RCurl_1.95-4.3 stringr_0.6.2  tools_3.1.1   


Danilo Freire

unread,
Nov 15, 2014, 8:10:53 PM11/15/14
to rro...@googlegroups.com
Hi everyone,

Thank you so much for all your replies. I was out of town for the last days, so sorry for taking so long to write back.

Chris and Andries, thanks for the suggestion. However, I already had g++ installed, so apparently that was not the main problem.

Curiously, I followed Taavi's and Antonio's advice and everything works great now. Using install_git() instead of install_github() has solved my problem. Don't ask me why, but it does work :-) 

Once again, I'd like to thank you guys for your support.

Best,
Danilo

By the way, here's my sessionInfo() after I installed the package successfully. It's probably not relevant now, but anyway... :-)

> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=en_GB.UTF-8       
 [4] LC_COLLATE=en_GB.UTF-8     LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_1.6

loaded via a namespace (and not attached):
[1] digest_0.6.4    htmltools_0.2.6 httr_0.5        RCurl_1.95-4.3  rmarkdown_0.3.3
[6] stringr_0.6.2   tools_3.1.1     yaml_2.1.13   

David Smith

unread,
Nov 17, 2014, 12:34:51 PM11/17/14
to rropen
Thanks for all the helpful reports everyone. We're looking into this problem, and you can track our progress at:


In the meantime, it appears the workaround is to use install_git instead of install_github,

Cheers,
# David Smith

-- 
David M Smith <da...@revolutionanalytics.com>
Chief Community Officer, Revolution Analytics  http://blog.revolutionanalytics.com
Tel: +1 (650) 646-9523 (Chicago IL, USA)
Twitter: @revodavid


--
You received this message because you are subscribed to the Google Groups "Revolution R Open" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rropen+un...@googlegroups.com.
To post to this group, send email to rro...@googlegroups.com.
Visit this group at http://groups.google.com/group/rropen.
To view this discussion on the web visit https://groups.google.com/d/msgid/rropen/bbfbdf92-957c-4cdc-8d04-b8fc05c82ba7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Alexander Gedranovich

unread,
Jan 7, 2015, 3:50:34 PM1/7/15
to rro...@googlegroups.com
options(unzip = 'internal') worked for me.
Message has been deleted

Mahendra Bhandari

unread,
Apr 2, 2015, 4:53:07 AM4/2/15
to rro...@googlegroups.com
> library(devtools)
> devtools::install_github("twitter/BreakoutDetection")
Downloading github repo twitter/BreakoutDetection@master
Error in system(full, intern = quiet, ignore.stderr = quiet, ...) : 
  error in running command
> install_github("rasmusab/beepr")
Downloading github repo rasmusab/beepr@master
Error in system(full, intern = quiet, ignore.stderr = quiet, ...) : 
  error in running command

Mine was similar error was able to resolve via
devtools::install_git("https://github.com/ramnathv/htmlwidgets.git", branch = "master")
devtools::install_git("https://github.com/smartinsightsfromdata/rpivotTable.git", branch = "master") 

This is htmlwidgets and rPivot table 

Thanks
Mahendra

Madhavan Sriram

unread,
Jul 10, 2015, 4:44:36 AM7/10/15
to rro...@googlegroups.com
I am facing the same issue (but with Windows though). Both install_github() and install_git() are not working

Mahendra Bhandari

unread,
Jul 10, 2015, 5:03:08 AM7/10/15
to Madhavan Sriram, rro...@googlegroups.com

please provide complete R command
Mahendra

--
You received this message because you are subscribed to a topic in the Google Groups "Revolution R Open" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rropen/GeCyC-wfWA4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rropen+un...@googlegroups.com.

To post to this group, send email to rro...@googlegroups.com.
Visit this group at http://groups.google.com/group/rropen.

Madhavan Sriram

unread,
Jul 10, 2015, 5:07:14 AM7/10/15
to Mahendra Bhandari, rro...@googlegroups.com
> install_github("hadley/httr")
Downloading github repo hadley/httr@master
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached

> traceback()
13: .Call(R_curl_fetch_memory, url, handle)
12: curl::curl_fetch_memory(url, handle = handle)
11: request_fetch.write_memory(req$output, req$url, handle)
10: request_fetch(req$output, req$url, handle)
9: request_perform(req, hu$handle$handle)
8: httr::HEAD(src_submodules, , auth)
7: github_has_remotes(x, auth)
6: remote_download.github_remote(remote, quiet = quiet)
5: remote_download(remote, quiet = quiet)
4: FUN(X[[1L]], ...)
3: vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
2: install_remotes(remotes, ...)
1: install_github("hadley/httr")
> devtools::install_git("https://github.com/ropensci/plotly.git", branch = "master")
Downloading git repo https://github.com/ropensci/plotly.git
Error in git2r::clone(x$url, bundle, progress = FALSE) : 
  Error in 'git2r_clone': failed to send request: The operation timed out

Warm Regards,

David Smith

unread,
Jul 10, 2015, 10:40:38 AM7/10/15
to rro...@googlegroups.com, mad...@gmail.com, kms...@gmail.com

Thanks for reporting the issue, Mahendra. Do you know if the issue is specific to Revolution R Open, i.e. have you tried it with CRAN R and found that the problem does not occur there?


Also, can you please let us know what operating system (which version of Windows) this occurs with? You might try running the command:


options(download.file.method = "wininet")


and trying install_github again and see if that resolves the issue.


Thanks,

# David Smith

Madhavan Sriram

unread,
Jul 10, 2015, 11:14:35 AM7/10/15
to David Smith, rro...@googlegroups.com, Mahendra Bhandari
That was brilliant David. It worked as soon as i put the options(download.file.method = "wininet") 

Thanks,
Madhavan

Warm Regards,


Reply all
Reply to author
Forward
0 new messages