Skip to content

cpsvote

A Toolbox for Using the CPS’s Voting and Registration Supplement

v0.2.0 · Jun 25, 2026 · MIT + file LICENSE

Description

Provides automated methods for downloading, recoding, and merging selected years of the Current Population Survey's Voting and Registration Supplement <https://www.nber.org/research/data/current-population-survey-cps-supplements-voting-and-registration>, a large N national survey about registration, voting, and non-voting in United States federal elections. Provides documentation for appropriate use of sample weights to generate statistical estimates, drawing from Hur & Achen (2013) <doi:10.1093/poq/nft042> and McDonald (2018) <https://www.electproject.org/election-data/voter-turnout-data>.

Downloads

CRAN

432

Last 30 days

9878th

905

Last 90 days

2.9K

Last year

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

r2u CRAN

16

Last 30 days

44

Last 90 days

120

Last year

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

autoCRAN

4

Last 7 days

16

Last 30 days

0

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

Code

Structure

Lines of code

3,032

Files

68

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,094 (36.1%)Docs 727 (24%)Vignettes 1,211 (39.9%)

API

Exported functions

12

Internal functions

1

Recent export changes

v0.2.0+2 cps_data_dir, cps_docs_dir
v0.1.0+10 %>%, cps_download_data, cps_download_docs +7 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

54.5%

\dontrun example ratio

50%

Roxygen coverage

91.7%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

16.7%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2020-11-05

Latest release

2026-06-25

Avg cadence

2058 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 2,305 LOCv0.2.0: 3,032 LOC

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

Dependency Network

Dependencies Reverse dependencies magrittr readr dplyr stringr forcats rlang cpsvote

Version History

2 tracked
updated 0.2.0 ← 0.1.0 diff Jun 25, 2026
new 0.1.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Nov 5, 2020. Releases before tracking aren’t shown.