Keeping Up With the Johns Hopkins COVID-19 Repository

Created on March 30, 2020 by Richard Kelly
Tags: r, covid-19
coronavirus

The following R script displays the last commit date of the Johns Hopkins CSSEGISandData/COVID-19 repository.

Prerequisites

These packages must be installed:

install.packages(c("dplyr", "httr", "jsonlite", "purrr"))

Script

require(dplyr)

"https://api.github.com/repos/CSSEGISandData/COVID-19/commits/master" %>%
    httr::GET() %>%
    httr::content(as = "text") %>%
    jsonlite::fromJSON() %>%
    purrr::pluck("commit", "author", "date")

I may use this in the future to automate the generation of the charts on this site.

Based on a few observations, it looks like at least one automated update is scheduled per day, at 23:55 UTC (16:55 PDT).