Skip to content

blocs

0.1.1

Estimate and Visualize Voting Blocs' Partisan Contributions

0packages depend
2.8Kdownloads / year
92.8%test coverage
0/13checks pass

Overview

About
Maintained by Cole Tanigawa-LauFirst published 2022-11-232 releasesCRAN page ↗

Functions to combine data on voting blocs' size, turnout, and vote choice to estimate each bloc's vote contributions to the Democratic and Republican parties. The package also includes functions for uncertainty estimation and plotting. Users may define voting blocs along a discrete or continuous variable. The package implements methods described in Grimmer, Marble, and Tanigawa-Lau (2023) doi:10.31235/osf.io/c9fkg.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.84
92.8%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 59 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
not tracked
Documented parameters
80%
Return-value docs
100%
References docs
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #13,593 · ~8/day · ~233/mo
Daily download trend is not available in this view yet.
23730 days
75290 days
2.8K1 year
Compare downloads with other packages →
Also on107 r2u24 autocran

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1Latest
    2023-04-02 · current release · diff ↗
  • 0.1.0
    2022-11-23
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-11-23
Total releases
2 / 4 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.6.0
Bundled data
276 KB / 1 file
Download size
294 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("blocs")
Tanigawa-Lau, C., Grimmer, J., & Marble, W. (2023). blocs: Estimate and Visualize Voting Blocs' Partisan Contributions (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.blocs

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for blocs version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy