Skip to contents

The cases a decision cites, the cases that cite it, or the legislation it cites. CanLII serves the citator in English only.

Usage

morie_ingest_canlii_citator(
  database_id,
  case_id,
  type = c("citedCases", "citingCases", "citedLegislations"),
  api_key = NULL,
  timeout = .MORIE_CANLII_DEFAULT_TIMEOUT,
  user_agent = .MORIE_CANLII_DEFAULT_UA
)

Arguments

database_id

CanLII database id.

case_id

CanLII case id.

type

"citedCases" (default), "citingCases" or "citedLegislations".

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 of the cited or citing records (databaseId, caseId or legislationId, title, citation), zero rows when there are none.

Examples

if (FALSE) { # \dontrun{
morie_ingest_canlii_citator("csc-scc", "2008scc9", "citingCases")
} # }