R Project for Statistical Computing

Exploring CRAN downloads in 2018 and 2019

This task involves reading real-world data and obtaining useful summaries about R and package dowloads over time.

The R-Hub cranlogs API is a very simple API to query using a web browser or R. You can read more about this API here: https://github.com/r-hub/cranlogs.app

Using R: install the jsonlite R package.

Example 1 - For R package downloads: jsonlite::fromJSON("https://cranlogs.r-pkg.org/downloads/total/2014-01-01:2014-06-01")

Example 2 - For Base R downloads: https://cranlogs.r-pkg.org/downloads/total/2014-01-01:2014-06-01/R

This task involves:

  1. Using this API to obtain data for total R package downloads for 2018 and 2019.
  2. Using this API to obtain data for total Base R downloads for 2018 and 2019.
  3. Visualizing R package downloads for 2018 and 2019
  4. Visualizing total base R downloads for 2018 and 2019
  5. Storing the results of 1 and 2 above in a single CSV file - one record for each year.
  6. Compute (in percentage) the increase of base R downloads and R package downloads from 2018 to 2019
  7. Provide a month-by-month comparison of R package downloads for 2018 and 2019 in a CSV table (visualization can added but is optional)

Task tags

  • cranlogs
  • r statistical computing
  • api

Students who completed this task

ZeroDawn.0D, programmingwizard

Task type

  • code Code
close

2019