Retries to download the requested resource before stopping. Uses
httr2 to cache in-session results in the tempdir().
Value
An invisible file path character string. Called for its side-effects, writes an object to the specified directory for reading into the active R session later.
Examples
f <- fs::path_temp("fdp-beta-national-historical.csv")
.retry_download(
url = "https://www.agriculture.gov.au/sites/default/files/documents/fdp-beta-national-historical.csv",
dest = f
)
#> Error in .retry_download(url = "https://www.agriculture.gov.au/sites/default/files/documents/fdp-beta-national-historical.csv", dest = f): could not find function ".retry_download"
