Open Aeilert opened 2 years ago
devtools::check()
currently returns a NOTE
checking R code for possible problems ... NOTE
File ‘pipr/R/zzz.R’:
.onLoad calls:
packageStartupMessage("Info: Session based caching is enabled.")
See section ‘Good practice’ in '?.onAttach'.
Probably, we want to pull the changes from main
to define .onAttach
separately.
Task linked: CU-2me73h0 Add retry Functionality
Adds retry functionality
retry_request()
to try and retry a GET request. Works on any URL. Only retries if the request failed due to a relevant server error (429, 500, 503, 504)send_query()
as a wrapper forbuild_url()
andretry_request()
retry_host()
to try and retry a host connection. Currently not used as part of the main API functions. We could use this as part of a diagnostic process if we want.send_query()
uses...
for additional parameters passed toretry_request()
. This option is however not exposed inget_stats()
orget_aux()