fetch_args_list {epidatr} | R Documentation |
Set custom API request parameters
Description
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.
Usage
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")
)
Arguments
... |
not used for values, forces later arguments to bind by name |
fields |
a list of epidata fields to return, or |
disable_date_parsing |
disable automatic date parsing |
disable_data_frame_parsing |
disable automatic conversion to data frame; this is only supported by endpoints that only support the 'classic' format (non-tabular) |
return_empty |
boolean that allows returning an empty tibble if there is no data |
timeout_seconds |
the maximum amount of time (in seconds) to wait for a response from the API server |
base_url |
base URL to use; by default |
dry_run |
if |
debug |
if |
format_type |
the format to request from the API, one of classic, json,
csv; this is only used by |
Value
A fetch_args
object containing all the specified options