View source: R/lib_data_loader.R
| friendly_download | R Documentation |
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.
friendly_download(url, target_path, attempt_wayback = NULL)
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 |
TRUE if either the primary download or the Wayback fallback
succeeds, otherwise FALSE.
ok <- friendly_download("https://cloud.r-project.org/",
tempfile(fileext = ".html"),
attempt_wayback = "") # disable the fallback
ok
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.