rdb-package: rdb: Download Data from the Referendum Database (RDB), Which...

rdb-packageR Documentation

rdb: Download Data from the Referendum Database (RDB), Which Covers Direct Democratic Votes Worldwide

Description

rdb provides access to the Referendum Database (RDB) from R. This database aims to record all direct democratic votes worldwide and is operated by the Centre for Democracy Studies Aarau (ZDA) at the University of Zurich, Switzerland.

Package configuration

Some of rdb's functionality is controlled via package-specific global configuration which can either be set via R options or environment variables (the former take precedence). This configuration includes:

Description R option Environment variable Default value
RDB Services API username rdb.api_username R_RDB_API_USERNAME
RDB Services API password rdb.api_password R_RDB_API_PASSWORD
Maximal timespan to preserve the package's pkgpins cache. Cache entries older than this will be deleted upon package loading. rdb.global_max_cache_age R_RDB_GLOBAL_MAX_CACHE_AGE "30 days"
Whether or not to use the testing servers instead of the production servers for RDB Services API calls etc. rdb.use_testing_server R_RDB_USE_TESTING_SERVER FALSE
Whether or not to run the tests that use the testing servers for RDB Services API calls etc. during devtools::test(). rdb.test_testing_server R_RDB_TEST_TESTING_SERVER FALSE

Author(s)

Maintainer: Salim Brüggemann salim-b@pm.me (ORCID)

Authors:

Other contributors:

  • Centre for Democracy Studies Aarau (ZDA) info@zdaarau.ch [copyright holder]

See Also

Useful links:


zdaarau/c2d documentation built on Dec. 18, 2024, 1:24 p.m.