Skip to contents

Metadata of one CanLII statute or regulation

Usage

morie_ingest_canlii_legislation(
  database_id,
  legislation_id,
  language = c("en", "fr"),
  api_key = NULL,
  timeout = .MORIE_CANLII_DEFAULT_TIMEOUT,
  user_agent = .MORIE_CANLII_DEFAULT_UA
)

Arguments

database_id

CanLII legislation database id.

legislation_id

CanLII legislation id from morie_ingest_canlii_legislations.

language

"en" (default) or "fr".

api_key

CanLII API key; defaults to the CANLII_API_KEY environment variable.

timeout

HTTP timeout in seconds.

user_agent

User-Agent header sent with the request.

Value

A one-row data.frame with legislationId, url, title, citation, type, language, dateScheme, startDate, endDate, repealed and content.

Examples

if (FALSE) { # \dontrun{
morie_ingest_canlii_legislation("cas", "rsc-1985-c-c-46")
} # }