
Download a file with an automatic Wayback fallback (via rmoriebricklayer)
Source:R/bricklayer.R
morie_download.RdThin bridge to rmoriebricklayer::friendly_download(): downloads
url to target_path, falling back to the archived Wayback
snapshot if the live source is unreachable – useful for pinned open-data
sources (e.g. the OTIS "Data on Inmates in Ontario" releases) that may move
or change upstream.
Value
The downloaded path, per rmoriebricklayer::friendly_download().
Examples
# \donttest{
morie_download(
"https://data.ontario.ca/dataset/data-on-inmates-in-ontario",
tempfile(fileext = ".html"))
#> [1] TRUE
# }