Changelog
Source:NEWS.md
openFDA (development version)
-
BREAKING CHANGES:
- Changed name of
warn_on_http_errorargument inopenFDA()tohandle_http_errors, to reflect the new package-level option.
- Changed name of
- Added
pagingparameter toopenFDA()function. This parameter controls whether paging (returning multiple sets of results for one query) occurs where necessary. Check out the documentation foropenFDA()for more information. - Added package-level options to openFDA
-
openFDA.paging; the default value of which is"ask". A user can change this option to alter the default paging behaviour of theopenFDA()function (to"always"page results or"never"page results). -
openFDA.paging_verbosity; the default value of which is"verbose". A user can change this option to control whether messages about potential paging are printed to the console. -
openFDA.handle_http_errors; the default value of which is"warn". A user can change this option to alter how non-200 OKHTTP codes are handled (they can be silenced or trigger errors).
-
- Added
openFDA_options()andcurrent_openFDA_options(), two functions which can be used to get/set and get openFDA package-level option values, respectively. - API keys are now stored/retrieved using the
keyringpackage. This is a more secure alternative to simply using environment variables, as users are prompted to supply the API key interactively (instead of storing them in a script). - The
openFDA()function now supports caching withmemoise::memoise(). - Added extra (hopefully clearer) content to package vignettes/articles.
- Added minimum R version (4.1.0)
openFDA 0.1.0
CRAN release: 2024-10-18
- Basic openFDA functions:
-
openFDA()to run queries against the openFDA API. -
format_search_term()andformat_sort_term()to help constructopenFDA()query components. -
set_api_key()andget_api_key()for working with openFDA API keys.
-
- Initial CRAN submission.