Skip to content

restatapi

Search and Retrieve Data from Eurostat Database

v0.25.0 · Mar 30, 2026 · EUPL

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

CRAN

799

Last 30 days

4039th

2.3K

Last 90 days

9K

Last year

Trend: +11.6% (30d vs prior 30d)

r2u CRAN

10

Last 30 days

36

Last 90 days

126

Last year

Trend: -56.5% (30d vs prior 30d)

autoCRAN

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

2 ERROR
11 OK
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)
ERROR r-release-macos-arm64

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
ERROR r-release-macos-x86_64

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
ERROR r-release-macos-arm64

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
ERROR r-devel-linux-x86_64-debian-gcc

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
ERROR r-devel-linux-x86_64-fedora-gcc

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
ERROR r-oldrel-windows-x86_64

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
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies data.table rjson xml2 hicp restatapi

Version History

39 tracked
updated 0.25.0 ← 0.24.5 diff Mar 30, 2026
new 0.24.5 Mar 10, 2026
updated 0.24.5 ← 0.24.2 diff Feb 3, 2026
updated 0.24.2 ← 0.24.1 diff Jan 27, 2025
updated 0.24.1 ← 0.23.2 diff Jan 26, 2025
updated 0.23.2 ← 0.23.1 diff Sep 29, 2024
updated 0.23.1 ← 0.22.5 diff Mar 25, 2024
updated 0.22.5 ← 0.22.1 diff Jan 7, 2024
updated 0.22.1 ← 0.21.2 diff Sep 18, 2023
updated 0.21.2 ← 0.20.6 diff Aug 8, 2023
updated 0.20.6 ← 0.20.3 diff Mar 8, 2023
updated 0.20.3 ← 0.14.1 diff Feb 23, 2023
updated 0.14.1 ← 0.13.3 diff Jan 20, 2023
updated 0.13.3 ← 0.13.1 diff May 31, 2022
updated 0.13.1 ← 0.12.8 diff Mar 24, 2022