redist
4.3.2Simulation Methods for Legislative Redistricting
Overview
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
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-05-0213 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2211 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-189 OK · 3 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
Show 1 earlier snapshots
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 76%
- Documented parameters
- 98%
- Return-value docs
- 98%
- References docs
- 25%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
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.
Show all practices
Dependencies
Code & Tests
- 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
Call graph
Open call graph →Lowest coverage
454 functions| Function | Cyclo | Coverage |
|---|---|---|
| add_constr_compet exp | 3 | 0% |
| add_constr_fry_hold exp | 6 | 0% |
| add_constr_grp_inv_hinge exp | 4 | 0% |
| add_constr_grp_pow exp | 5 | 0% |
| add_constr_incumbency exp | 3 | 0% |
| add_constr_multisplits exp | 5 | 0% |
People & History
22 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 4.3.2Latest
- 4.3.12025-10-01 · diff ↗
- 4.3.02025-07-08 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 4.2.02024-01-13 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 4.1.12023-04-03 · diff ↗
- unarchivedReturned to CRAN2023-04-03
- archivedRemoved from CRAN2023-04-03issues were not corrected in time
- 4.1.02023-03-19 · diff ↗
- 4.0.12022-06-16 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.1.52021-10-06 · diff ↗
- 3.1.42021-09-19 · diff ↗
Show 24 earlier events
- 3.1.32021-09-14 · diff ↗
- 3.1.12021-09-05 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 3.0.72021-05-15 · diff ↗
- unarchivedReturned to CRAN2021-05-15
- archivedRemoved from CRAN2021-04-21check problems were not corrected in time
- 3.0.12021-04-07 · diff ↗
- 2.0.22020-10-14 · diff ↗
- unarchivedReturned to CRAN2020-10-14
- archivedRemoved from CRAN2020-10-04check issues were not corrected in time
- 2.0.12020-09-20 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.3-32018-12-15 · diff ↗
- 1.3-22018-10-18 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 1.3-12017-03-15 · diff ↗
- 1.32016-12-21 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.22015-08-21 · diff ↗
- 1.12015-05-19 · diff ↗
- 1.02015-05-18
- RR 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