thackl / gggenomes

A grammar of graphics for comparative genomics
https://thackl.github.io/gggenomes/
Other
581 stars 64 forks source link

Installation error #88

Closed joegeorgeson closed 2 years ago

joegeorgeson commented 2 years ago

I get the below error when following your installation guidelines;

> devtools::install_github("thackl/gggenomes")
Downloading GitHub repo thackl/gggenomes@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/thackl/gggenomes/tarball/HEAD' failed
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
thackl commented 2 years ago

Odd. I just tried to reproduce the problem and it works fine. I also could download "https://api.github.com/repos/thackl/gggenomes/tarball/HEAD" directly. Maybe you could try to see if that brings up any issue.

Have your tried to install other packages from github with devtools. For example devtools::install_github("thackl/thacklr").

The only thing I can imaging at this point is that the download is taking too long if you have a slow connection. I might have put too much sample data in the package. For me it takes ~20 seconds, but maybe for you it takes longer and runs into a timeout?

joegeorgeson commented 2 years ago

I was able to install thacklr no problem. When I try to download only the HEAD file I can but the download rate is KB/s - I also see this is a 'big' file (48M)...maybe there are some compounding issues that result in the error???

> devtools::install_github("thackl/thacklr")
Skipping install of 'thacklr' from a github remote, the SHA1 (2ff883e6) has not changed since last install.
  Use `force = TRUE` to force installation
> library(thacklr)
.
.
.
other attached packages:
[1] thacklr_0.0.0.9000
thackl commented 2 years ago

Hm, ok, if you can download the HEAD but it is really slow, then I really think the slow download (caused the size of the package) is the issue... Going forward, I was already planning to reduce the size of the package, but it might take a some days/weeks before I get to do that. In the meantime, you could download the HEAD file separately and then install it with devtools::install_local(). That way you should be able to get around timeout issues.

joegeorgeson commented 2 years ago

Thanks, this worked!

thackl commented 2 years ago

Happy to hear that!