bricklayer_fetch_siu: Fetch an Ontario SIU director's report by drid

View source: R/fetch_siu.R

bricklayer_fetch_siuR Documentation

Fetch an Ontario SIU director's report by drid

Description

Downloads the HTML of one Ontario Special Investigations Unit (SIU) director's report to dest, via bricklayer_fetch (live URL with a Wayback Machine fallback). This is the fetch step of the open SIU corpus pipeline: pair it with the SIU parser in rmorie (or the standalone siu C++ package) to rebuild the full director's-report corpus yourself, then audit it with the multi-agent panel.

Usage

bricklayer_fetch_siu(
  drid,
  dest,
  lang = c("en", "fr"),
  wayback = "",
  timeout = 120L
)

Arguments

drid

Director's-report id – the drid= query parameter (integer or integer-like scalar).

dest

Destination file path for the fetched HTML.

lang

"en" (default) or "fr".

wayback

Optional explicit Wayback snapshot URL (passed through to bricklayer_fetch); "" lets it discover one.

timeout

Request timeout in seconds. Default 120.

Value

"live" or "wayback" (invisibly), as bricklayer_fetch.

See Also

bricklayer_fetch

Examples


# Downloads from the live SIU web service; try() keeps the example
# graceful when the service (and its Wayback fallback) is unreachable.
# Fetch report drid 648 to a temp file.
dest <- tempfile(fileext = ".html")
try(bricklayer_fetch_siu(648, dest))


rmoriebricklayer documentation built on Aug. 5, 2026, 9:08 a.m.