Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: epidatr
Title: Client for Delphi's 'Epidata' API
Version: 1.2.2
Version: 1.2.3
Authors@R: c(
person("Logan", "Brooks", , "lcbrooks@andrew.cmu.edu", role = "aut"),
person("Dmitry", "Shemetov", , "dshemeto@andrew.cmu.edu", role = "aut"),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@


# epidatr 1.2.3

## Changes

- Make sure `*_meta` functions bypass the cache by default.

# epidatr 1.2.2

## Changes
Expand Down
13 changes: 9 additions & 4 deletions R/endpoints.R
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,8 @@
#' available, the geographic levels at which they are reported, and etc.
#'
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
#' By default, the cache is refreshed (since we anticipate the user will want
#' to see the latest metadata).
#'
#' @return [`tibble::tibble`]
#'
Expand All @@ -896,7 +898,7 @@
#' @seealso [pub_covidcast()],[covidcast_epidata()]
#' @keywords endpoint
#' @export
pub_covidcast_meta <- function(fetch_args = fetch_args_list()) {
pub_covidcast_meta <- function(fetch_args = fetch_args_list(refresh_cache=TRUE)) {

Check warning on line 901 in R/endpoints.R

View workflow job for this annotation

GitHub Actions / lint

file=R/endpoints.R,line=901,col=74,[infix_spaces_linter] Put spaces around all infix operators.
create_epidata_call(
"covidcast_meta/",
list(),
Expand Down Expand Up @@ -1466,12 +1468,13 @@
#' }
#'
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
#' Set `refresh_cache=TRUE` to force a refresh of the cache.
#'
#' @return [`tibble::tibble`]
#' @seealso [`pub_fluview()`]
#' @keywords endpoint
#' @export
pub_fluview_meta <- function(fetch_args = fetch_args_list()) {
pub_fluview_meta <- function(fetch_args = fetch_args_list(refresh_cache=TRUE)) {

Check warning on line 1477 in R/endpoints.R

View workflow job for this annotation

GitHub Actions / lint

file=R/endpoints.R,line=1477,col=72,[infix_spaces_linter] Put spaces around all infix operators.
create_epidata_call(
"fluview_meta/",
list(),
Expand Down Expand Up @@ -1746,11 +1749,12 @@
#' }
#' @param auth string. Restricted access key (not the same as API key).
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
#' Set `refresh_cache=TRUE` to force a refresh of the cache.
#' @return [`list`]
#' @seealso [`pvt_norostat()`]
#' @keywords endpoint
#' @export
pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list()) {
pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list(refresh_cache=TRUE)) {

Check warning on line 1757 in R/endpoints.R

View workflow job for this annotation

GitHub Actions / lint

file=R/endpoints.R,line=1757,col=79,[infix_spaces_linter] Put spaces around all infix operators.
assert_character_param("auth", auth, len = 1)

create_epidata_call(
Expand All @@ -1765,11 +1769,12 @@
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/meta.html>
#'
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
#' Set `refresh_cache=TRUE` to force a refresh of the cache.
#'
#' @return [`list`]
#' @keywords endpoint
#' @export
pub_meta <- function(fetch_args = fetch_args_list()) {
pub_meta <- function(fetch_args = fetch_args_list(refresh_cache=TRUE)) {

Check warning on line 1777 in R/endpoints.R

View workflow job for this annotation

GitHub Actions / lint

file=R/endpoints.R,line=1777,col=64,[infix_spaces_linter] Put spaces around all infix operators.
create_epidata_call("meta/", list(), only_supports_classic = TRUE) %>% fetch(fetch_args = fetch_args)
}

Expand Down
Loading