Simulation 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.
- Allows for parallel flip with
chainsargument inredist_flip(). - Fixes URL issues causing a note on CRAN. We have pointed the links to our website directly.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR9 OK, 3 NOTE, 2 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 116 (2 internal)includes a package overview page
- Examples that run
- 76%52 run in a plain check · 8 only when donttest examples are enabled (R CMD check --as-cran) · 8 never run
- Exported functions with examples
- 60%
- Documented parameters
- 98%
- Return-value docs
- 98%
- Help pages citing references
- 25%
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 31
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/alarm-redist/redist on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-02-12 · The repository has a site deploy workflow
pkgdown site last built 2026-02-12
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-01-05Pull request: opened by its own account
Dependencies
Installing redist adds 58 packages (34 with compiled code, 57 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Previously maintained by Ben Fifield (1.0 to 2.0.2).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 4.3.2Latest
- 4.3.12025-10-01 · diff ↗
- 4.3.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 4.2.02024-01-13 · diff ↗ ·
removed 8 exports
persily, pick_a_plan, redist.combine, redist.combine.anneal, redist.flip, redist.flip.anneal, redist.plot.interactive, redist.prep.polsbypopperadded 2 exports
combine_scorers, pl - RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-04-03
- archivedRemoved from CRAN2023-04-03issues were not corrected in time
- 4.1.12023-04-03 · diff ↗
- 4.1.0
- 4.0.12022-06-16 · diff ↗ ·
removed 4 exports
flip_constraints_helper, imp_confint, redist.mergesplit, redist.smcadded 27 exports
add_constr_compet, add_constr_custom, add_constr_edges_rem, add_constr_fry_hold, add_constr_grp_hinge, add_constr_grp_inv_hinge, add_constr_grp_pow, add_constr_incumbency, add_constr_log_st, add_constr_multisplits, add_constr_polsby, add_constr_pop_dev, add_constr_segregation, add_constr_splits, add_constr_status_quo, add_constr_total_splits, avg_by_prec, min_move_parity, muni_splits, redist.muni.splits, redist.plot.trace, redist.plot.wted.adj, redist.wted.adj, redist_constr, redist_flip_anneal, redist_smc_ci, tally_var - RR 4.2.0 released · 2022-04-22
- 3.1.52021-10-06 · diff ↗
- 3.1.42021-09-19 · diff ↗
Show 24 earlier eventsHide 24 earlier events
- 3.1.32021-09-14 · diff ↗
- 3.1.12021-09-05 · diff ↗ ·
removed 7 exports
redist.choropleth, redist.enumerate, redist.map, redist.mcmc, redist.mcmc.anneal, redist.reindex, redist.samplepartadded 11 exports
persily, pick_a_plan, plans_diversity, redist.dist.pop.overlap, redist.district.splits, redist.multisplits, redist.plot.interactive, redist.prec.pop.overlap, redist.reorder, redist_mergesplit_parallel, scorer_multisplits - RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-05-15
- 3.0.72021-05-15 · diff ↗
- archivedRemoved from CRAN2021-04-21check problems were not corrected in time
- 3.0.12021-04-07 · diff ↗ ·
added 83 exports
add_reference, as_redist_map, classify_plans, compare_plans, competitiveness, county_splits, distr_compactness, filter, flip_constraints_helper, freeze, get_adj, get_existing, get_mh_acceptance_rate, get_plans_matrix, get_plans_weights, get_pop_tol, get_sampling_info, get_target, group_frac, imp_confint, is_contiguous, is_county_split, last_plan, make_cores, match_numbers, merge_by, number_by, partisan_metrics, plan_distances, plan_parity and 53 more - unarchivedReturned to CRAN2020-10-14
- 2.0.22020-10-14 · diff ↗
- archivedRemoved from CRAN2020-10-04check issues were not corrected in time
- 2.0.12020-09-20 · diff ↗ ·
added 17 exports
redist.adjacency, redist.calc.frontier.size, redist.combine.anneal, redist.compactness, redist.crsg, redist.distances, redist.init.enumpart, redist.map, redist.mcmc.anneal, redist.metrics, redist.parity, redist.prep.enumpart, redist.read.enumpart, redist.run.enumpart, redist.samplepart, redist.smc, redist.smc_is_ci - 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 ↗ ·
added 5 exports
redist.mcmc.mpi, redist.combine, redist.combine.mpi, redist.enumerate, redist.findparams - 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
Cite
Cite this package
Run in R for the authors' entry:
citation("redist")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1214/23-aoas1763.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.