简体   繁体   中英

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")

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM