Skip to content

redist

4.3.2

Simulation Methods for Legislative Redistricting

5packages depend
7Kdownloads / year
38.5%test coverage
13/13checks pass

Overview

About
Maintained by Christopher T. KennyFirst published 2015-05-1822 releasesCRAN page ↗GitHub ↗

Enables researchers to sample redistricting plans from a pre-specified target distribution using Sequential Monte Carlo and Markov Chain Monte Carlo algorithms. The package allows for the implementation of various constraints in the redistricting process such as geographic compactness and population parity requirements. Tools for analysis such as computation of various summary statistics and plotting functionality are also included. The package implements the SMC algorithm of McCartan and Imai (2023) doi:10.1214/23-AOAS1763, the enumeration algorithm of Fifield, Imai, Kawahara, and Kenny (2020) doi:10.1080/2330443X.2020.1791773, the Flip MCMC algorithm of Fifield, Higgins, Imai and Tarr (2020) doi:10.1080/10618600.2020.1739532, the Merge-split/Recombination algorithms of Carter et al. (2019) doi:10.48550/arXiv.1911.01503 and DeFord et al. (2021) doi:10.1162/99608f92.eb30390f, and the Short-burst optimization algorithm of Cannon et al. (2020) doi:10.48550/arXiv.2011.02288.

Install

Health

CRAN checks
13OK
Slowest check: 15.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.07
38.5%
Coverage · measured lines
100%
Documentation · exports
16
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    9 OK · 3 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 206 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
76%
Documented parameters
98%
Return-value docs
98%
References docs
25%

Downloads

7K
CRAN downloads in the past year
Rank #7,461 · ~19/day · ~583/mo
Daily download trend is not available in this view yet.
39930 days
1.4K90 days
7K1 year
Compare downloads with other packages →
Also on1.1K r2u45 autocran

Repository

Repository
74Stars
27Forks
8Open issues
3Open PRs
14Releases
1,718Commits
18Contributors
redistrictinggerrymanderingsamplingrgeospatial
License GPL-2.0 · 1,718 commits · Last activity 2026-07-20 · +2.8% stars, 30d

Stars over time

2025-05-27 · 692026-07-07 · 74

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/alarm-redist/redist on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Governance and community (1)
Issue templates
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Reverse dependencies
5direct
0indirect

Code & Tests

Code Composition
R 13,304 (47%)C++ 6,589 (23%)Rd 5,856 (21%)Vignettes 1,390 (5%)C 1,120 (4%)
Code characteristics
Object systems
S357
Cyclomatic complexity
2.0 median / 61 max
Test cases
55 / 0.07 per code line
System requirements
2 external

Test coverage

Line coverage

38%

Expression

41.1%

Tests / Examples

38.5% / 48% ex

Functions

454 136 exported

Complexity

5.1 avg / 61 max

Call network

454 nodes / 597 edges

Loading call graph…

Lowest coverage

454 functions
FunctionCycloCoverage
add_constr_compet exp30%
add_constr_fry_hold exp60%
add_constr_grp_inv_hinge exp40%
add_constr_grp_pow exp50%
add_constr_incumbency exp30%
add_constr_multisplits exp50%

People & History

People (7)
Maintainer (1)
Author, Maintainer · added in 2.0.1
Authors (4)
Author, Maintainer · added in 2.0.1
Author · added in 2.0.1
Author · added in 2.0.1
Contributors (3)
Contributor
Contributor · added in 2.0.1
Contributor
Listed in earlier versions (1)
no longer listed · 1.0 to 1.3-3
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 4.3.2Latest
    2026-02-12 · current release · diff ↗
  • 4.3.1
    2025-10-01 · diff ↗
  • 4.3.0
    2025-07-08 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 4.2.0
    2024-01-13 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 4.1.1
    2023-04-03 · diff ↗
  • unarchivedReturned to CRAN
    2023-04-03
  • archivedRemoved from CRAN
    2023-04-03
    issues were not corrected in time
  • 4.1.0
    2023-03-19 · diff ↗
  • 4.0.1
    2022-06-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.1.5
    2021-10-06 · diff ↗
  • 3.1.4
    2021-09-19 · diff ↗
Show 24 earlier events
  • 3.1.3
    2021-09-14 · diff ↗
  • 3.1.1
    2021-09-05 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 3.0.7
    2021-05-15 · diff ↗
  • unarchivedReturned to CRAN
    2021-05-15
  • archivedRemoved from CRAN
    2021-04-21
    check problems were not corrected in time
  • 3.0.1
    2021-04-07 · diff ↗
  • 2.0.2
    2020-10-14 · diff ↗
  • unarchivedReturned to CRAN
    2020-10-14
  • archivedRemoved from CRAN
    2020-10-04
    check issues were not corrected in time
  • 2.0.1
    2020-09-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3-3
    2018-12-15 · diff ↗
  • 1.3-2
    2018-10-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.3-1
    2017-03-15 · diff ↗
  • 1.3
    2016-12-21 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.2
    2015-08-21 · diff ↗
  • 1.1
    2015-05-19 · diff ↗
  • 1.0
    2015-05-18
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-05-18
Total releases
22 / 11 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.1.0
Bundled data
799 KB / 8 files
Download size
2.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →