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

Implement download metrics #89

Closed
Bisaloo opened this issue Aug 30, 2021 · 7 comments
Closed

Implement download metrics #89

Bisaloo opened this issue Aug 30, 2021 · 7 comments

Comments

@Bisaloo
Copy link

Bisaloo commented Aug 30, 2021

It would be useful to have some download metrics for package. It would be another advantage of using r-universe vs remotes for the development version of packages.

(I was not sure whether feature requests should be posted here or in the 'Discussions' space. Please feel free to move this if necessary.)

@kadyb
Copy link

kadyb commented Jan 27, 2023

It would be great if it would be possible to get statistics about package downloads as easily as from the RStudio CRAN mirror using the {cranlogs} package.

@jeroen
Copy link
Member

jeroen commented Jan 31, 2023

Thanks for the suggestion :-)

Just a little explanation what makes it difficult: I am afraid that the metrics will be off, because the majority of downloads may be from other CI runs of r-universe, rather than actual users. So this will inflate the statistics, especially for universes with many packages where a run of pkg A downloads pkg B and so on (this is btw why CRAN downloads statistics are highly inflated as well).

Another issue is that popular files may get served via our CDN cache (cloudflare) so the request may not reach the back-end server, making it difficult to count them.

All in all I was worried that raw back-end downloads would be too inaccurate to expose them.

@Bisaloo
Copy link
Author

Bisaloo commented Feb 1, 2023

Thanks for the detailed answer!

To clarify, do you see this as "this is a list of things explaining why I want to take it slow and make sure I reduce all possible sources of inaccuracy" or "this is a list of reasons why I'm not likely to do it"?

@jeroen
Copy link
Member

jeroen commented Feb 1, 2023

The first. I do think having some sort of download stats is useful, but perhaps try to improve them a little bit first...

@maelle
Copy link
Collaborator

maelle commented Feb 2, 2023

A bit off topic, regarding CRAN download stats: https://blog.r-hub.io/2020/05/11/packagerank-intro/

@sebffischer
Copy link

Would it be possible to specify whether a packages is used for a CI run when downloading a package from r-universe?

Also I think that even having raw downloads is useful as you can still detect trends to determine whether your user-base is growing or not.

@jeroen
Copy link
Member

jeroen commented Nov 18, 2024

Moving to: #528

@jeroen jeroen closed this as completed Nov 18, 2024
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

5 participants