get_data: Acquire Data for the Given Url

View source: R/get-data.R

get_dataR Documentation

Acquire Data for the Given Url

Description

Acquire Data for the Given Url

Usage

get_data(url, df = FALSE, quiet = TRUE, ...)

Arguments

url

a url containing a valid API call

df

logical, TRUE if you want the output as a data frame. Default value is FALSE

quiet

logical with default TRUE, passed to httr::RETRY(). If TRUE this function does not print messages when httr::RETRY() has to retry getting a request due to hitting a rate limit.

...

additional arguments to pass to httr::RETRY()

Examples

## Not run: 
get_data("https://api.regulations.gov/v4/documents?filter[docketId]=CMS-2014-0063&api_key=DEMO_KEY")

## End(Not run)

q-w-a/regulationsgov documentation built on May 3, 2022, 8:23 p.m.