Skip to contents

Statutes or regulations of one CanLII legislation database

Usage

morie_ingest_canlii_legislations(
  database_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, for example "cas" (federal statutes) as listed by morie_ingest_canlii_legislation_databases.

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 data.frame with databaseId, legislationId, title, citation and type.

Examples

if (FALSE) { # \dontrun{
morie_ingest_canlii_legislations("cas")
} # }