Skip to content

restatis

R Wrapper to Access a Wide Range of Germany's Federal Statistical System Databases Based on the GENESIS Web Service RESTful API of the German Federal Statistical Office (Statistisches Bundesamt/Destatis)

v0.4.1 · May 31, 2026 · MIT + file LICENSE

Description

A RESTful API wrapper for accessing the main databases of Germany's Federal Statistical System. Supports data search functions, credential management, result caching, and handling remote background jobs for large datasets.

Downloads

CRAN

664

Last 30 days

5067th

2.2K

Last 90 days

8.2K

Last year

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

r2u CRAN

3

Last 30 days

31

Last 90 days

113

Last year

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

autoCRAN

4

Last 7 days

11

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 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 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 25, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [4s/89s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional t
...[truncated]...
, handlers)
   18.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19.                         └─value[[3L]](cond)
  
  [ FAIL 1 | WARN 0 | SKIP 50 | PASS 62 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

26,542

Files

155

Compiled share

0%

Has compiled src

No

Language breakdown

R 7,226 (27.2%)Tests 16,358 (61.6%)Docs 1,993 (7.5%)Vignettes 965 (3.6%)

API

Exported functions

25

Internal functions

39

Recent export changes

v0.3.0−4 gen_metadata_stats, gen_metadata_tab, gen_metadata_val 1 more
v0.2.0+9 gen_auth_get, gen_download_job, gen_logincheck +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

2.26

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

100%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2023-06-30

Latest release

2026-06-01

Avg cadence

299 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v0.1.0: 16,640 LOCv0.2.0: 21,472 LOCv0.3.0: 37,181 LOCv0.4.0: 30,467 LOCv0.4.1: 26,542 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies askpass httr2 memoise readr tibble vctrs purrr restatis

Version History

6 tracked
updated 0.4.1 ← 0.4.0 diff Jun 1, 2026
updated 0.4.0 ← 0.3.0 diff Mar 15, 2026
new 0.3.0 Mar 10, 2026
updated 0.3.0 ← 0.2.0 diff Apr 8, 2025
updated 0.2.0 ← 0.1.0 diff Jul 24, 2024
new 0.1.0 Jun 29, 2023