elx_fetch_data {eurlex} | R Documentation |
Retrieve additional data on EU documents
Description
Get titles, texts, identifiers and XML notices for EU resources.
Usage
elx_fetch_data(
url,
type = c("title", "text", "ids", "notice"),
notice = c("tree", "branch", "object"),
language_1 = "en",
language_2 = "fr",
language_3 = "de",
include_breaks = TRUE,
html_text = c("text2", "text")
)
Arguments
url |
A valid url as character vector of length one based on a resource identifier such as CELEX or Cellar URI. |
type |
The type of data to be retrieved. When type = "text", the returned list contains named elements reflecting the source of each text. When type = "notice", the results return an XML notice associated with the url. |
notice |
If type = "notice", controls what kind of metadata are returned by the notice. |
language_1 |
The priority language in which the data will be attempted to be retrieved, in ISO 639 2-char code |
language_2 |
If data not available in |
language_3 |
If data not available in |
include_breaks |
If TRUE, text includes tags showing where pages ("—pagebreak—", for pdfs) and documents ("—documentbreak—") were concatenated |
html_text |
Choose whether to read text from html using |
Value
A character vector of length one containing the result. When type = "text"
, named character vector where the name contains the source of the text.
Examples
elx_fetch_data(url = "http://publications.europa.eu/resource/celex/32014R0001", type = "title")