33

How can I get simple download metrics for an R package on CRAN?

I recently released my own package on CRAN and I want to monitor it a bit.

moodymudskipper
  • 46,417
  • 11
  • 121
  • 167
Ben
  • 20,038
  • 30
  • 112
  • 189
  • 1
    Have a look here: http://www.nicebread.de/finally-tracking-cran-packages-downloads/ – 989 Nov 27 '16 at 23:36
  • @989 Thanks. I saw that post but it seems like excessive work just to get package download counts. That's why I ended up here. – Ben Nov 27 '16 at 23:39
  • 4
    [Here](http://www.datasciencemeta.com/rpackages)'s a full list of CRAN packages and the number of downloads – stevec Sep 06 '19 at 15:23
  • 3
    https://hadley.shinyapps.io/cran-downloads/ – Axeman Mar 29 '22 at 19:03

3 Answers3

48

http://cranlogs.r-pkg.org offers a variety of ways to access counts of the number of times a package has been downloaded (not installed) from the RStudio CRAN mirror (only), including an API for generating badges automatically and an R package.

For the mltools package:

Downloads (https://cranlogs.r-pkg.org/badges/mltools)

Downloads in last day (https://cranlogs.r-pkg.org/badges/last-day/mltools)

Grand total (https://cranlogs.r-pkg.org/badges/grand-total/mltools)

Community
  • 1
  • 1
Ben Bolker
  • 211,554
  • 25
  • 370
  • 453
12

To get metrics of the number of package downloads (not installations) you could also use the following packages:

petzi
  • 1,430
  • 1
  • 17
  • 32
10

You can check the number of downloads a CRAN package has here:

http://www.datasciencemeta.com/rpackages


enter image description here

stevec
  • 41,291
  • 27
  • 223
  • 311