dsc_search: Query the DSC

Description Usage Arguments Value

View source: R/drugshortagescanada.R

Description

The search API is documented here: https://www.drugshortagescanada.ca/blog/52

Usage

1
dsc_search(..., format = "tidy", max_pages = Inf)

Arguments

...

A named list of query parameters. See the DSC Web API documentation for details on query parameters: https://www.drugshortagescanada.ca/blog/52

format

The default 'tidy' returns a tibble with columns converted to the appropriate data types. Use 'json' to get results as returned by the API in JSON format after using jsonlite::rbind_pages to concatenate multiple pages of results.

max_pages

Limit the number of requests made to the API. The number of results returned will depend on the total results, and the limit and offset parameters if supplied.

Value

Results formatted according to format


pipitone/rdrugshortages documentation built on May 5, 2020, 3:41 a.m.