restatapi
Search and Retrieve Data from Eurostat Database
Description
Eurostat is the statistical office of the European Union and provides high quality statistics for Europe. Large set of the data is disseminated through the Eurostat database (<https://ec.europa.eu/eurostat/web/main/data/database>). The tools are using the REST API with the Statistical Data and Metadata eXchange (SDMX) Web Services (<https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-detailed-guidelines/sdmx2-1>) to search and download data from the Eurostat database using the SDMX standard.
Downloads
799
Last 30 days
4039th
2.3K
Last 90 days
9K
Last year
Trend: +11.6% (30d vs prior 30d)
10
Last 30 days
36
Last 90 days
126
Last year
Trend: -56.5% (30d vs prior 30d)
0
Last 7 days
9
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | ERROR |
| r-release-macos-x86_64 | ERROR |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
tests
Running ‘tinytest.R’ [16s/370s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package("restatapi", at_home = home)
+ }
restatapi: - version 0.25.0
- config file with the API version 2 loaded from GitHub (the 'current' API version number is 2).
- 2 from the 12 cores are used for parallel computing, can be changed with 'options(restatapi_cores=...)'
- 'auto' method will be used for file download, can be changed with 'options(restatapi_dmethod=...)'
- the Table of contents (TOC) was not pre-loaded into the deafult cache ('.restatapi_env').
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 test
...[truncated]...
restat - nrow:34; ncol:6; colnames:geo/milkitem/dairyprod/time/values/flags
get_eurostat_data - restat NULL?:FALSE
id: agr_r_milkpr
filters: ...BE+HU
date filter: ?startPeriod=2007-06-01
test_restatapi.R.............. 82 tests 1 fails
test_restatapi.R.............. 83 tests 1 fails
clean_restatapi_cache - All objects (outside of 'cfg', 'rav', 'cc' and 'dmethod') are removed from '.restatapi_env'.
clean_restatapi_cache - Deleted all .rds files from /Volumes/Temp/tmp/RtmpG9MToV
test_restatapi.R.............. 83 tests 1 fails
There are skipped tests:27-29
test_restatapi.R.............. 83 tests 1 fails
Skipped tests: 27-29
config version: 2
test_restatapi.R.............. 83 tests 1 fails
test_restatapi.R.............. 83 tests 1 fails 6.2s
----- FAILED[data]: test_restatapi.R<169--169>
call| expect_true(is.null(dt8))
diff| Expected TRUE, got FALSE
Error: 1 out of 83 tests failed
Execution halted
tests
Running ‘tinytest.R’ [44s/430s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package("restatapi", at_home = home)
+ }
restatapi: - version 0.25.0
- config file with the API version 2 loaded from GitHub (the 'current' API version number is 2).
- 2 from the 6 cores are used for parallel computing, can be changed with 'options(restatapi_cores=...)'
- 'auto' method will be used for file download, can be changed with 'options(restatapi_dmethod=...)'
- the Table of contents (TOC) was not pre-loaded into the deafult cache ('.restatapi_env').
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
test_restatapi.R.............. 0 tests
...[truncated]...
restat - nrow:34; ncol:6; colnames:geo/milkitem/dairyprod/time/values/flags
get_eurostat_data - restat NULL?:FALSE
id: agr_r_milkpr
filters: ...BE+HU
date filter: ?startPeriod=2007-06-01
test_restatapi.R.............. 82 tests 1 fails
test_restatapi.R.............. 83 tests 1 fails
clean_restatapi_cache - All objects (outside of 'cfg', 'rav', 'cc' and 'dmethod') are removed from '.restatapi_env'.
clean_restatapi_cache - Deleted all .rds files from /Volumes/Temp/tmp/Rtmpy6p5dY
test_restatapi.R.............. 83 tests 1 fails
There are skipped tests:27-29
test_restatapi.R.............. 83 tests 1 fails
Skipped tests: 27-29
config version: 2
test_restatapi.R.............. 83 tests 1 fails
test_restatapi.R.............. 83 tests 1 fails 7.2s
----- FAILED[data]: test_restatapi.R<169--169>
call| expect_true(is.null(dt8))
diff| Expected TRUE, got FALSE
Error: 1 out of 83 tests failed
Execution halted
Check History
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 27, 2026
tests
Running ‘tinytest.R’ [16s/370s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package(
...[truncated]...
.. 83 tests 1 fails
test_restatapi.R.............. 83 tests 1 fails 6.2s
----- FAILED[data]: test_restatapi.R<169--169>
call| expect_true(is.null(dt8))
diff| Expected TRUE, got FALSE
Error: 1 out of 83 tests failed
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 19, 2026
tests
Running ‘tinytest.R’ [43s/76s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package("
...[truncated]...
i.R.............. 83 tests [0;31m1 fails[0m [0;34m1.2s[0m
----- FAILED[data]: test_restatapi.R<50--59>
call| expect_equal(nrow(xml_toc), nrow(txt_toc))
diff| Expected '49', got '7629'
Error: 1 out of 83 tests failed
Execution halted
tests
Running ‘tinytest.R’ [90s/76s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package("
...[truncated]...
i.R.............. 83 tests [0;31m1 fails[0m [0;34m1.2s[0m
----- FAILED[data]: test_restatapi.R<50--59>
call| expect_equal(nrow(xml_toc), nrow(txt_toc))
diff| Expected '49', got '7629'
Error: 1 out of 83 tests failed
Execution halted
tests
Running 'tinytest.R' [73s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
+ tinytest::test_package("rest
...[truncated]...
i.R.............. 83 tests [0;31m1 fails[0m [0;34m1.2s[0m
----- FAILED[data]: test_restatapi.R<50--59>
call| expect_equal(nrow(xml_toc), nrow(txt_toc))
diff| Expected '49', got '7629'
Error: 1 out of 83 tests failed
Execution halted