R/update_catalog.R

Defines functions read_live_catalog

Documented in read_live_catalog

#' @title Read Live Catalog from Github release
#' @description
#' Every month, our data catalog is refreshed. This function reads 
#' the most current catalog from the Github release.
#' @param url URL to read
#' @return data.frame
#' @export
#' @family catalog

read_live_catalog = function(url = paste0('https://github.com/mikejohnson51/climateR-catalogs',
                                          '/releases/latest/download/',
                                          'catalog.parquet')) {
  read_parquet(url)
}
mikejohnson51/climateR documentation built on March 27, 2024, 5:31 p.m.