Skip to contents

Lists every court and tribunal CanLII carries, with the databaseId that the other CanLII functions take.

Usage

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

Arguments

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, jurisdiction and name.

References

CanLII API documentation, https://github.com/canlii/API_documentation.

Examples

if (FALSE) { # \dontrun{
dbs <- morie_ingest_canlii_databases()
dbs[dbs$jurisdiction == "on", ]
} # }