View package downloads over time with Shiny

[This article was first published on Variance Explained, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)