View package downloads over time with Shiny

March 5, 2015

(This article was first published on Variance Explained, and kindly contributed to R-bloggers)

Almost everyone with an R package in CRAN wonders how often it’s installed and used. Two years ago RStudio kindly started offering anonymized logs of their downloads from their CRAN mirror, which allows one to graph the number of downloads over time. Much easier than downloading and processing all of the log files, however, is working with RStudio’s JSON API, (which can be accessed with cranlogs) to find downloads-per-day statistics for any specific package.

To make plotting a package’s downloads even easier, I’ve used that API to create a Shiny app! Simply type in any package in CRAN, select the amount of time you want to graph over, and voila:

Downloads of Shiny over time

You can find the code for the app here. Enjoy!

To leave a comment for the author, please follow the link and comment on their blog: Variance Explained. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)