R/refresh.R

Defines functions refresh_covid19france

Documented in refresh_covid19france

#' Refresh data
#'
#' @param verbose Should messages about what's going on be displayed?
#'
#' @return A tibble of the most up to date per-day data on cases of COVID-19 in France, ordered by date descending.
#' @export
#'
#' @examples
#' \donttest{
#' refresh_covid19france()
#' }
refresh_covid19france <- function(verbose = TRUE) {
  if (verbose) message(glue::glue("Downloading raw data from {url}."))

  read_data() %>%
    clean_data() %>%
    average_data() %>%
    enlongen_data()
}

Try the covid19france package in your browser

Any scripts or data that you put into this service are public.

covid19france documentation built on April 14, 2020, 6:18 p.m.