Skip to content

Commit

Permalink
end of council_votes()
Browse files Browse the repository at this point in the history
  • Loading branch information
michalovadek committed Jul 3, 2024
1 parent 3e58788 commit 3145c35
Show file tree
Hide file tree
Showing 28 changed files with 338 additions and 516 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: eurlex
Type: Package
Title: Retrieve Data on European Union Law
Version: 0.4.7
Version: 0.4.8
Authors@R: c(person(given = "Michal",
family = "Ovadek",
role = c("aut", "cre", "cph"),
Expand All @@ -23,7 +23,6 @@ Imports:
rvest,
rlang,
stringr,
readr,
pdftools,
antiword
Suggests:
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by roxygen2: do not edit by hand

export(elx_council_votes)
export(elx_curia_list)
export(elx_download_xml)
export(elx_fetch_data)
Expand Down
7 changes: 5 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# eurlex 0.5.0
# eurlex 0.4.8

## Major changes
- the Council votes API was discontinued in May 2024. Hopefully there is a new one to replace it soon
- the Council votes API was discontinued in May 2024. The function `elx_council_votes()` is no longer exported

## Minor changes
- tempfile created for XML download now gets deleted

# eurlex 0.4.7

Expand Down
12 changes: 4 additions & 8 deletions R/elx_council_votes.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#' Retrieve Council votes on EU acts
#' NOTE: The Council votes API was discontinued in May 2024.
#'
#' Executes a SPARQL query to the Council's endpoint.
#'
#' @importFrom rlang .data
#' @return
#' A data frame with Council votes on EU acts.
#' @export
#' @examples
#' \donttest{
#' votes <- elx_council_votes()
#' }
#'
#' @noRd
#'

elx_council_votes <- function(){

Expand Down
1 change: 1 addition & 0 deletions R/elx_download_xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#' temploc <- paste(tempdir(), "elxnotice.xml", sep = "\\")
#' elx_download_xml(url = "http://publications.europa.eu/resource/celex/32022D0154",
#' file = temploc, notice = "object")
#' unlink(temploc)
#' }

elx_download_xml <- function(url, file = paste(basename(url), ".xml", sep = ""),
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ Install from CRAN via `install.packages("eurlex")`.
The development version is available via `remotes::install_github("michalovadek/eurlex")`.

## Cite
Michal Ovádek (2021) **Facilitating access to data on European Union laws**, *Political Research Exchange*, 3:1, DOI: [10.1080/2474736X.2020.1870150](https://www.tandfonline.com/doi/full/10.1080/2474736X.2020.1870150)
Michal Ovádek (2021) **Facilitating access to data on European Union laws**, *Political Research Exchange*, 3:1, DOI: [10.1080/2474736X.2020.1870150](https://doi.org/10.1080/2474736X.2020.1870150)

``` r
@article{ovadek2021facilitating,
author = {Ovádek, Michal},
title = {Facilitating access to data on European Union laws},
year = {2021},
journal = {Political Research Exchange},
volume = {3},
number = {1},
pages = {Article No. 1870150},
url = {https://doi.org/10.1080/2474736X.2020.1870150}
}
```

## Basic usage
The `eurlex` package currently envisions the typical use-case to consist of getting bulk information about EU legislation into R as fast as possible. The package contains three core functions to achieve that objective: `elx_make_query()` to create pre-defined or customized SPARQL queries; `elx_run_query()` to execute the pre-made or any other manually input query; and `elx_fetch_data()` to fire GET requests for certain metadata to the REST API.
Expand Down
11 changes: 9 additions & 2 deletions docs/404.html

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

164 changes: 14 additions & 150 deletions docs/articles/council.html

Large diffs are not rendered by default.

201 changes: 24 additions & 177 deletions docs/articles/eurlexpkg.html

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions docs/articles/index.html

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

20 changes: 14 additions & 6 deletions docs/articles/sparql-queries.html

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

12 changes: 9 additions & 3 deletions docs/authors.html

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

27 changes: 23 additions & 4 deletions docs/index.html

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

29 changes: 23 additions & 6 deletions docs/news/index.html

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

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pandoc: 3.1.1
pandoc: 3.1.11
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
council: council.html
eurlexpkg: eurlexpkg.html
sparql-queries: sparql-queries.html
last_built: 2024-02-25T20:10Z
last_built: 2024-07-03T00:20Z

Loading

0 comments on commit 3145c35

Please sign in to comment.