Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download .tar.gz #371

Closed
kkmann opened this issue May 29, 2019 · 2 comments
Closed

download .tar.gz #371

kkmann opened this issue May 29, 2019 · 2 comments

Comments

@kkmann
Copy link

kkmann commented May 29, 2019

Hi,

I have recently been looking into the problem of computing package quality metrics and the most consistent starting point for doing that seems to be the package .tar.gz.
remotes seems to have almost all the infrastructure I'd need to code up for doing that but at the moment it is geared towards installing packages.

How difficult would it be to add functions for only downloading the .tar.gz from a remote, i.e. download_github, download_cran etc.?
Shouldn't be too difficult for most remotes since you do that as an intermediate step anyway (except for CRAN).

I guess I am suggesting a new generic

download(remote, dest, ...)

where dest would be the destination directory.

I'd be happy to help, but probably would need some guidance. @jimhester Is this within the scope of remotes?

@jimhester
Copy link
Member

There is actually already a remote_download() generic, it is just not exported.

remote_download <- function(x, quiet = FALSE) UseMethod("remote_download")

@kkmann
Copy link
Author

kkmann commented May 29, 2019

👍 thanks, how could I miss that x)

@kkmann kkmann closed this as completed May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants