Low-level httr2 wrapper. A HEAD size check is compared against the local
file, partial downloads (.part) are continued with an HTTP Range
request, and finished data are renamed into place so a crash never leaves
a truncated file masquerading as complete.
Arguments
- url
Direct file URL.
- destfile
Final local path.
- overwrite
If
TRUE, a valid-looking local file is re-downloaded.- retries
Passed to
httr2::req_retry.- timeout_s
Per-request timeout in seconds.
