Used to specify custom options when making API requests, such as to set timeouts or change data formats. These options are used by fetch()
when it makes calls to the Epidata API.
fetch_args_list(
...,
fields = NULL,
disable_date_parsing = FALSE,
disable_data_frame_parsing = FALSE,
return_empty = FALSE,
timeout_seconds = 15 * 60,
base_url = NULL,
dry_run = FALSE,
debug = FALSE,
format_type = c("json", "classic", "csv"),
refresh_cache = FALSE
)
Arguments
not used for values, forces later arguments to bind by name
a list of epidata fields to return, or NULL
to return all fields (default). e.g. c("time_value", "value")
to return only the time_value
and value
fields or c("-direction")
to return everything except the direction field
disable automatic date parsing
disable automatic conversion to data frame; this is only supported by endpoints that only support the 'classic' format (non-tabular)
boolean that allows returning an empty tibble if there is no data
the maximum amount of time (in seconds) to wait for a response from the API server
base URL to use; by default NULL
, which means the global base URL "https://api.delphi.cmu.edu/epidata/"
if TRUE
, skip the call to the API and instead return the epidata_call
object (useful for debugging)
if TRUE
, return the raw response from the API
the format to request from the API, one of classic, json, csv; this is only used by fetch_debug
, and by default is "json"
if TRUE
, ignore the cache, fetch the data from the API, and update the cache, if it is enabled
A fetch_args
object containing all the specified options
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4