Wraps utils::download.file() and, on failure, prints plain-language
guidance for the most common academic and corporate network problems
(rate limiting, TLS-inspection VPNs, DNS failures, timeouts, HTTP 403).
Optionally retries from a Wayback Machine snapshot URL.
Arguments
- url
URL to download.
- target_path
Destination path on disk.
- attempt_wayback
Wayback Machine snapshot URL tried as a fallback if the primary download fails. When
NULL(the default) a snapshot is resolved automatically viawayback_snapshot_url(); pass an explicit URL to override the lookup, or""to disable the fallback entirely.