ropensci / ruODK

ruODK: An R Client for the ODK Central API
https://docs.ropensci.org/ruODK/
GNU General Public License v3.0
42 stars 13 forks source link

RETRY: Global allow for fail after one try #94

Closed dmenne closed 4 years ago

dmenne commented 4 years ago

ruODK uses RETRY for most httr requests. This is a good idea for real life internet operations, but when running tests it slow down everything considerable.

It would be nice if parameter times in RETRY could be set by some global action to 1.

florianm commented 4 years ago

That makes absolute sense, thanks for the suggestion! I will add times = ruODK::get_default_retries() to all httr::GET calls, which in turn should read an enviornment variable like RU_RETRIES with a default of 3 (the current value).

dmenne commented 4 years ago

Perfect!