Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to acquire tar.gz file from github R package

I need to acquire a tar.gz version of an R package from github. I'm not sure how that's possible. Downloading the package from Github results in a zip file.

For CRAN packages, I would do the following, using ggplot2 as an example:

download.packages(pkgs = "ggplot2", destdir = "package")
like image 797
Cyrus Mohammadian Avatar asked Nov 20 '25 23:11

Cyrus Mohammadian


1 Answers

The tar.gz for a Github repo account/reponame, branch branchname can be found at

https://github.com/account/reponame/archive/branchname.tar.gz

Hat tip to jeroen/curl, where this trick is noted as a way to install curl without going through devtools (which uses curl)

like image 77
Hong Ooi Avatar answered Nov 22 '25 16:11

Hong Ooi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!