Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CRAN release (minor fix) #234

Merged
merged 5 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ index.*
docs

# Vignette
#./vignettes/website
./vignettes/*.Rmd
#./vignettes/fig
#./vignettes/fig/
Expand Down
62 changes: 46 additions & 16 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,24 +1,52 @@
Type: Package
Package: eurostat
Title: Tools for Eurostat Open Data
Version: 3.7.9
Date: 2021-10-01
Version: 3.7.10
Date: 2022-02-08
Authors@R: c(
person("Leo", "Lahti", , "leo.lahti@iki.fi", role = c("aut", "cre"),
person(given = "Leo",
family = "Lahti",
role = c("aut", "cre"),
email = "leo.lahti@iki.fi",
comment = c(ORCID = "0000-0001-5537-637X")),
person("Janne", "Huovari", role = "aut"),
person("Markus", "Kainu", role = "aut"),
person("Przemyslaw", "Biecek", role = "aut"),
person("Daniel", "Antal", role = "ctb"),
person("Diego", "Hernangomez", role = "ctb",
person(given = "Janne",
family = "Huovari",
role = "aut"),
person(given = "Markus",
family = "Kainu",
role = "aut"),
person(given = "Przemyslaw",
family = "Biecek",
role = "aut"),
person(given = "Daniel",
family = "Antal",
role = "ctb"),
person(given = "Diego",
family = "Hernangomez",
role = "ctb",
comment = c(ORCID = "0000-0001-8457-4658")),
person("Joona", "Lehtomaki", role = "ctb"),
person("Francois", "Briatte", role = "ctb"),
person("Reto", "Stauffer", role = "ctb"),
person("Paul", "Rougieux", role = "ctb"),
person("Anna", "Vasylytsya", role = "ctb"),
person("Oliver", "Reiter", role = "ctb"),
person("Pyry", "Kantanen", role = "ctb")
person(given = "Joona",
family = "Lehtomaki",
role = "ctb"),
person(given = "Francois",
family = "Briatte",
role = "ctb"),
person(given = "Reto",
family = "Stauffer",
role = "ctb"),
person(given = "Paul",
family = "Rougieux",
role = "ctb"),
person(given = "Anna",
family = "Vasylytsya",
role = "ctb"),
person(given = "Oliver",
family = "Reiter",
role = "ctb"),
person(given = "Pyry",
family = "Kantanen",
role = "ctb",
comment = c(ORCID = "0000-0003-2853-2765"))
)
Description: Tools to download data from the Eurostat database
<https://ec.europa.eu/eurostat> together with search and manipulation
Expand Down Expand Up @@ -48,11 +76,13 @@ Imports:
tibble,
tidyr
Suggests:
RColorBrewer,
knitr,
rmarkdown,
sf,
sp,
testthat (>= 3.0.0)
testthat (>= 3.0.0),
remotes
VignetteBuilder:
knitr
Config/testthat/edition: 3
Expand Down
11 changes: 2 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
Copyright 2014-2021 Leo Lahti, Janne Huovari, Markus Kainu, Przemyslaw Biecek

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
YEAR: 2014-2022
COPYRIGHT HOLDER: Leo Lahti, Janne Huovari, Markus Kainu, Przemyslaw Biecek
7 changes: 3 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ knitr::kable(head(passengers))
```


See the [Tutorial](https://ropengov.github.io/eurostat/articles/articles/eurostat_tutorial.html) and other resources at the [package homepage](https://ropengov.github.io/eurostat//) for more information and examples.
See the [Tutorial](https://ropengov.github.io/eurostat/articles/articles/eurostat_tutorial.html) and other resources at the [package homepage](https://ropengov.github.io/eurostat/) for more information and examples.

### Recommended packages

Expand All @@ -105,16 +105,15 @@ Contributions are very welcome:

### Acknowledgements

**Kindly cite this work** as follows: [Leo Lahti](https://github.com/antagomir), Przemyslaw Biecek, Markus Kainu and Janne Huovari. Retrieval and analysis of Eurostat open data with the eurostat package. [R Journal 9(1):385-392, 2017](https://journal.r-project.org/archive/2017/RJ-2017-019/index.html). R package version `r sessionInfo()$otherPkgs$eurostat$Version`. DOI: [10.32614/RJ-2017-019](https://doi.org/10.32614/RJ-2017-019). URL: [https://ropengov.github.io/eurostat/](https://ropengov.github.io/eurostat/)
**Kindly cite this package** as follows: [Leo Lahti](https://github.com/antagomir), Przemyslaw Biecek, Markus Kainu and Janne Huovari. Retrieval and analysis of Eurostat open data with the eurostat package. [R Journal 9(1):385-392, 2017](https://journal.r-project.org/archive/2017/RJ-2017-019/index.html). R package version `r sessionInfo()$otherPkgs$eurostat$Version`. DOI: [10.32614/RJ-2017-019](https://doi.org/10.32614/RJ-2017-019). URL: [https://ropengov.github.io/eurostat/](https://ropengov.github.io/eurostat/)

We are grateful to all [contributors](https://github.com/ropengov/eurostat/graphs/contributors), including Daniel Antal, Joona Lehtomäki, Francois Briatte, and Oliver Reiter, and for the [Eurostat](https://ec.europa.eu/eurostat/) open data portal! This project is part of [rOpenGov](http://ropengov.org).



### Disclaimer

This package is in no way officially related to or endorsed by Eurostat.

When using data retrieved from Eurostat database in your work, please indicate that the data source is Eurostat. If your re-use involves some kind of modification to data or text, please state this clearly to the end user. See Eurostat policy on [copyright and free re-use of data](https://ec.europa.eu/eurostat/about/policies/copyright) for more detailed information and certain exceptions.

[chat-badge]: https://img.shields.io/badge/chat-on%20gitter-46BC99.svg?style=flat-square
[chat]: https://gitter.im/ropengov/eurostat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ knitr::kable(head(passengers))
| Air passenger transport | enps\_avia\_pa | dataset | 16.04.2021 | NA | 2005 | 2020 | NA |
| Volume of passenger transport relative to GDP | tran\_hv\_pstra | dataset | 07.07.2021 | 07.07.2021 | 1990 | 2019 | NA |
| Modal split of passenger transport | tran\_hv\_psmod | dataset | 07.07.2021 | 07.07.2021 | 1990 | 2019 | NA |
| Air passenger transport by reporting country | avia\_paoc | dataset | 04.10.2021 | 01.10.2021 | 1993 | 2021Q2 | NA |
| Air passenger transport by main airports in each reporting country | avia\_paoa | dataset | 07.10.2021 | 01.10.2021 | 1993 | 2021Q2 | NA |
| Air passenger transport between reporting countries | avia\_paocc | dataset | 01.10.2021 | 01.10.2021 | 1993 | 2021Q2 | NA |
| Air passenger transport by reporting country | avia\_paoc | dataset | 02.02.2022 | 17.01.2022 | 1993 | 2021Q3 | NA |
| Air passenger transport by main airports in each reporting country | avia\_paoa | dataset | 01.02.2022 | 01.02.2022 | 1993 | 2021Q4 | NA |
| Air passenger transport between reporting countries | avia\_paocc | dataset | 02.02.2022 | 17.01.2022 | 1993 | 2021Q3 | NA |

See the
[Tutorial](https://ropengov.github.io/eurostat/articles/articles/eurostat_tutorial.html)
and other resources at the [package
homepage](https://ropengov.github.io/eurostat//) for more information
and examples.
homepage](https://ropengov.github.io/eurostat/) for more information and
examples.

### Recommended packages

Expand All @@ -125,12 +125,12 @@ Contributions are very welcome:

### Acknowledgements

**Kindly cite this work** as follows: [Leo
**Kindly cite this package** as follows: [Leo
Lahti](https://github.com/antagomir), Przemyslaw Biecek, Markus Kainu
and Janne Huovari. Retrieval and analysis of Eurostat open data with the
eurostat package. [R
Journal 9(1):385-392, 2017](https://journal.r-project.org/archive/2017/RJ-2017-019/index.html).
R package version 3.7.9. DOI:
R package version 3.7.10. DOI:
[10.32614/RJ-2017-019](https://doi.org/10.32614/RJ-2017-019). URL:
<https://ropengov.github.io/eurostat/>

Expand All @@ -144,6 +144,13 @@ portal\! This project is part of [rOpenGov](http://ropengov.org).

This package is in no way officially related to or endorsed by Eurostat.

When using data retrieved from Eurostat database in your work, please
indicate that the data source is Eurostat. If your re-use involves some
kind of modification to data or text, please state this clearly to the
end user. See Eurostat policy on [copyright and free re-use of
data](https://ec.europa.eu/eurostat/about/policies/copyright) for more
detailed information and certain exceptions.

<!--[build-badge]: https://img.shields.io/travis/ropengov/eurostat.svg?style=flat-square-->

<!--[build]: https://travis-ci.org/ropengov/eurostat-->
17 changes: 7 additions & 10 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
citHeader("Kindly cite the eurostat R package as follows:")

note <- sprintf("Version %s", meta$Version)

bibentry("Article",
header = "Kindly cite the eurostat R package as follows:",
title = "Retrieval and Analysis of Eurostat Open Data with the
eurostat Package",
title = "Retrieval and Analysis of Eurostat Open Data with the eurostat Package",
author = c(
person("Leo", "Lahti"), person("Janne", "Huovari"),
person("Markus", "Kainu"), person(
"Przemyslaw",
"Biecek"
)
person("Leo", "Lahti"),
person("Janne", "Huovari"),
person("Markus", "Kainu"),
person("Przemyslaw", "Biecek")
),
journal = "The R Journal",
volume = 9,
Expand All @@ -18,11 +17,9 @@ bibentry("Article",
year = "2017",
doi = "10.32614/RJ-2017-019",
url = "https://doi.org/10.32614/RJ-2017-019",
note = note,
textVersion =
paste("(C) Leo Lahti, Janne Huovari, Markus Kainu, Przemyslaw Biecek.",
"Retrieval and analysis of Eurostat open data with the eurostat package. R Journal 9(1):385-392, 2017.",
note,
"doi: 10.32614/RJ-2017-019",
"Package URL: http://ropengov.github.io/eurostat",
"Article URL: https://journal.r-project.org/archive/2017/RJ-2017-019/index.html",
Expand Down
20 changes: 11 additions & 9 deletions vignettes/articles/blogposts.Rmd
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
---
title: "Blog posts"
date: "`r Sys.Date()`"
output:
rmarkdown::html_vignette:
toc: true
date: "2022-02-07"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Blog posts}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{Cairo}
%\VignetteEncoding{UTF-8}
\usepackage[utf8]{inputenc}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

* [Package release](https://rpubs.com/muuankarski/27120)
Here are some blog posts where eurostat package has been featured. If you have used eurostat package in your workflow and you would like to be included on this list, please let us know!

* [Package release](https://rpubs.com/muuankarski/27119)
* [Interactive widgets](https://www.mytinyshinys.com/2017/07/11/eurostat/) by Andrew Clark
* [Case studies](http://ropengov.github.io/r/2015/05/01/eurostat-package-examples/)

22 changes: 10 additions & 12 deletions vignettes/articles/cheatsheet.Rmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
---
title: "Cheat sheet: eurostat R package"
date: "`r Sys.Date()`"
output:
rmarkdown::html_vignette:
toc: true
date: "2022-02-07"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Cheat sheet: eurostat R package}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{Cairo}
%\VignetteEncoding{UTF-8}
\usepackage[utf8]{inputenc}
---

* [eurostat R package: cheat sheet (RStudio release version)](https://github.com/rstudio/cheatsheets/raw/master/eurostat.pdf)

* [eurostat R package: cheat sheet (rOpenGov development version)](https://github.com/rOpenGov/eurostat/blob/master/inst/extras/cheatsheet/eurostat_cheatsheet.pdf)



```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

* [eurostat R package: cheat sheet (RStudio release version)](https://github.com/rstudio/cheatsheets/blob/main/eurostat.pdf)

* [eurostat R package: cheat sheet (rOpenGov development version)](https://github.com/rOpenGov/eurostat/blob/master/inst/extras/cheatsheet/eurostat_cheatsheet.pdf)
12 changes: 6 additions & 6 deletions vignettes/articles/eurostat_tutorial.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vignette: >
\usepackage[utf8]{inputenc}
%\VignetteEngine{knitr::rmarkdown}
editor_options:
chunk_output_type: console
chunk_output_type: inline
---

# R Tools for Eurostat Open Data
Expand All @@ -35,8 +35,8 @@ install.packages("eurostat")
Development version [(Github)](https://github.com/rOpenGov/eurostat):

```{r install2, eval=FALSE}
library(devtools)
install_github("ropengov/eurostat")
library(remotes)
remotes::install_github("ropengov/eurostat")
```

```{r, echo=FALSE}
Expand All @@ -62,18 +62,18 @@ Function `get_eurostat_toc()` downloads a table of contents of eurostat datasets
```{r get_eurostat_toc, warning=FALSE, message=FALSE, eval = evaluate}
# Load the package
library(eurostat)
library(rvest)
# library(rvest)

# Get Eurostat data listing
toc <- get_eurostat_toc()

# Check the first items
library(knitr)
kable(head(toc))
kable(tail(toc))
```

Some of the data sets (e.g. in the 'comext' type) are not accessible
through the standard interface. See the get\_eurostat function documentation for more details.
through the standard interface. See the `get_eurostat()` function documentation for more details.

With `search_eurostat()` you can search the table of contents for particular patterns, e.g. all datasets related to *passenger transport*. The kable function to produces nice markdown output. Note that with the `type` argument of this function you could restrict the search to for instance datasets or tables.

Expand Down
18 changes: 12 additions & 6 deletions vignettes/articles/maps.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,26 @@ vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{Cairo}
%\VignetteEncoding{UTF-8}
\usepackage[utf8]{inputenc}
\usepackage[utf8]{inputenc}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(eurostat)
```

# R Tools for Eurostat Open Data: maps

This [rOpenGov](http://ropengov.github.io) R package provides tools to access [Eurostat database](http://ec.europa.eu/eurostat/data/database), which you can also browse on-line for the data sets and documentation. For contact information and source code, see the [package website](http://ropengov.github.io/eurostat/).


See eurostat vignette for installation and basic use.

```{r, echo=FALSE}
library(eurostat)
```

## Maps

NOTE: we recommend to check also the `giscoR` package (https://dieghernan.github.io/giscoR/). This is another API package that provides R tools for Eurostat geographic data to support geospatial analysis and visualization.
Expand Down
15 changes: 8 additions & 7 deletions vignettes/articles/publications.Rmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
---
title: "Publications using the eurostat R package"
date: "`r Sys.Date()`"
output:
rmarkdown::html_vignette:
toc: true
date: "2022-02-07"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Publications using the eurostat R package}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{Cairo}
%\VignetteEncoding{UTF-8}
\usepackage[utf8]{inputenc}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

You can send us a note via the [issue tracker](https://github.com/rOpenGov/eurostat/issues) if you like to add a publication using the eurostat R package on this list:

Expand All @@ -24,4 +26,3 @@ package. R Journal 2017.
External publications using the eurostat package:

* Kenett RDS, Shmueli G. Information Quality: The Potential of Data and Analytics to Generate Knowledge. John Wiley & Sons, 2016.

Loading