Skip to content

Commit

Permalink
044
Browse files Browse the repository at this point in the history
  • Loading branch information
michalovadek committed Nov 20, 2022
1 parent d3aa217 commit 5a516f4
Show file tree
Hide file tree
Showing 27 changed files with 1,144 additions and 533 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Authors@R: c(person(given = "Michal",
role = c("aut", "cre", "cph"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-2552-2580")))
Description: Access to data on European Union laws and court decisions made easy with pre-defined 'SPARQL' queries and 'GET' requests.
Description: Access to data on European Union laws and court decisions made easy with pre-defined 'SPARQL' queries and 'GET' requests. See Ovadek (2021) <doi:10.1080/2474736X.2020.1870150> .
License: GPL-3
Encoding: UTF-8
Language: en-US
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Minor changes

- minor changes to vignettes and examples to reduce build time
- more stable connection through `elx_curia_list()`
- fun CRAN policy compliance stuff

# eurlex 0.4.3

Expand Down
6 changes: 3 additions & 3 deletions R/elx_curia_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#' @importFrom rlang .data
#' @export
#' @examples
#' \dontrun{
#' elx_curia_list(data = "cst_all")
#' \donttest{
#' elx_curia_list(data = "cst_all", parse = FALSE)
#' }

elx_curia_list <- function(data = c("all","ecj_old","ecj_new","gc_all","cst_all"),
Expand Down Expand Up @@ -101,7 +101,7 @@ elx_curia_list <- function(data = c("all","ecj_old","ecj_new","gc_all","cst_all"

elx_curia_scraper <- function(url, ...){

page <- xml2::read_html(url)
page <- xml2::read_html(url(url, open = "rb"))

tab <- page %>%
rvest::html_node("table") %>%
Expand Down
6 changes: 4 additions & 2 deletions R/elx_download_xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
#' Path of downloaded file (invisibly) if server validates request (http status code has to be 200). For more information about notices, see Cellar documentation.
#' @export
#' @examples
#' \dontrun{
#' elx_download_xml(url = "http://publications.europa.eu/resource/celex/32014R0001", notice = "object")
#' \donttest{
#' temploc <- paste(tempdir(), "elxnotice.xml", sep = "\\")
#' elx_download_xml(url = "http://publications.europa.eu/resource/celex/32022D0154",
#' file = temploc, notice = "object")
#' }

elx_download_xml <- function(url, file = paste(basename(url), ".xml", sep = ""),
Expand Down
2 changes: 1 addition & 1 deletion R/elx_fetch_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' A character vector of length one containing the result. When `type = "text"`, named character vector where the name contains the source of the text.
#' @export
#' @examples
#' \dontrun{
#' \donttest{
#' elx_fetch_data(url = "http://publications.europa.eu/resource/celex/32014R0001", type = "title")
#' }

Expand Down
5 changes: 2 additions & 3 deletions R/elx_label_eurovoc.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
#' A `tibble` containing EuroVoc unique concept identifiers and labels.
#' @export
#' @examples
#' \dontrun{
#' elx_label_eurovoc(uri_eurovoc = "http://eurovoc.europa.eu/5760", alt_labels = TRUE, language = "fr")
#' elx_label_eurovoc(uri_eurovoc = c("http://eurovoc.europa.eu/5760","http://eurovoc.europa.eu/576"))
#' \donttest{
#' elx_label_eurovoc(uri_eurovoc = "http://eurovoc.europa.eu/5760", language = "fr")
#' }


Expand Down
491 changes: 415 additions & 76 deletions doc/eurlexpkg.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

753 changes: 446 additions & 307 deletions docs/articles/eurlexpkg.html

Large diffs are not rendered by default.

Binary file modified docs/articles/eurlexpkg_files/figure-html/wordcloud-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pandoc: 2.14.0.3
pkgdown: 2.0.2
pandoc: '2.18'
pkgdown: 2.0.6
pkgdown_sha: ~
articles:
eurlexpkg: eurlexpkg.html
last_built: 2022-11-17T00:04Z
last_built: 2022-11-20T11:43Z

16 changes: 9 additions & 7 deletions docs/reference/elx_council_votes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 29 additions & 10 deletions docs/reference/elx_curia_list.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a516f4

Please sign in to comment.