Skip to contents

Thin bridge to rmoriebricklayer::wayback_snapshot_url(): given a live URL, returns the closest archive.org snapshot URL (or NULL if none exists). Lets the morie family reuse the shared bricklayer Wayback helpers – e.g. to reach an archived copy of an Ontario Data Catalogue page (the "Data on Inmates in Ontario" / OTIS releases) when the live portal is unreachable – instead of duplicating them.

Usage

morie_wayback_url(url, timestamp = NULL)

Arguments

url

A live URL to look up on the Wayback Machine.

timestamp

Optional YYYYMMDD[hhmmss] to request the snapshot closest to that time; NULL (default) returns the most recent.

Value

The snapshot URL (https), or NULL if unavailable.

Examples

# \donttest{
morie_wayback_url("https://data.ontario.ca/dataset/data-on-inmates-in-ontario")
#> [1] "https://web.archive.org/web/20260623063610/https://data.ontario.ca/dataset/data-on-inmates-in-ontario"
# }