| bricklayer_fetch_siu | R Documentation |
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.
bricklayer_fetch_siu(
drid,
dest,
lang = c("en", "fr"),
wayback = "",
timeout = 120L
)
drid |
Director's-report id – the |
dest |
Destination file path for the fetched HTML. |
lang |
|
wayback |
Optional explicit Wayback snapshot URL (passed through
to |
timeout |
Request timeout in seconds. Default 120. |
"live" or "wayback" (invisibly), as
bricklayer_fetch.
bricklayer_fetch
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.