1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# download_url() retry logic works as advertised
Code
out <- download_url(url = "URL", destfile = "destfile")
---
Code
out <- download_url(url = "URL", destfile = "destfile")
Message
i Retrying download ... attempt 2.
---
Code
out <- download_url(url = "URL", destfile = "destfile")
Message
i Retrying download ... attempt 2.
i Retrying download ... attempt 3.
---
Code
out <- download_url(url = "URL", destfile = "destfile", n_tries = 3)
Message
i Retrying download ... attempt 2.
i Retrying download ... attempt 3.
Condition
Error:
! try 3
---
Code
out <- download_url(url = "URL", destfile = "destfile", n_tries = 10)
Message
i Retrying download ... attempt 2.
i Retrying download ... attempt 3.
i Retrying download ... attempt 4.
# normalize_url() prepends https:// (or not)
Code
normalize_url(1)
Condition
Error in `normalize_url()`:
! `url` must be a valid name, not the number 1.
|