Helper for use with purrr::map() when calling fetchNHD(). Adds a pause
between requests, retries on server-side failures, and stops after the
maximum number of retries is reached.
Arguments
- .data
Object passed to
fetchNHD().- nhd_res
Character. NHD resolution to use, either
"Hi"or"Med".- pause_sec
Numeric. Number of seconds to pause between queries.
- max_tries
Integer. Number of attempts to make before stopping.
Value
The result of fetchNHD() if successful.