sage: Retrieve Slices of the Small-Area Global Elections Archive

Downloads and subsets slices of the Small-Area Global Elections (SAGE) archive, a harmonized collection of polling-station and precinct-level election results, without having to read monolithic country-level files. Reads partitioned 'Parquet' from a public bucket (configurable through the 'SAGE_SOURCE' environment variable, the 'sage_set_source()' function, or a local copy of the archive) and exposes a 'sage_load(country, years, columns)' function returning a 'tibble', plus helpers for the accompanying boundary polygons and candidate-level vote sidecars. See <https://github.com/noahdasanaike/sage> for the archive itself.

Version: 0.2.0
Depends: R (≥ 4.0)
Imports: arrow (≥ 14.0.0), dplyr, rlang, tibble, utils
Suggests: curl, sf, sfarrow, testthat (≥ 3.0.0)
Published: 2026-10-15
DOI: 10.32614/CRAN.package.sage (may not be active yet)
Author: Noah Dasanaike [aut, cre, cph], Dmitry Shkolnik [ctb]
Maintainer: Noah Dasanaike <dasanaike.noah at gmail.com>
BugReports: https://github.com/noahdasanaike/sage/issues
License: MIT + file LICENSE
URL: https://github.com/noahdasanaike/sage
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: sage results

Documentation:

Reference manual: sage.html , sage.pdf

Downloads:

Package source: sage_0.2.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sage to link to this page.