Skip to content

redist

4.3.2Package record

Simulation Methods for Legislative Redistricting

3packages dependsuggested by 2
5.9Kdownloads / year
38.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 4.3.2
  • Allows for parallel flip with chains argument in redist_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

CRAN checks
13OK
Slowest check: 15.0 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 4.3.2
READMEYes · 206 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 4.3.2Citation fileYes · cites a publicationWebsiteYes · pkgdown
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

5.9K
CRAN downloads in the past year
Rank #5,134 · ~16/day · ~493/mo
Daily download trend is not available in this view yet.
69630 days
1.6K90 days
5.9K1 year
Compare downloads with other packages →
Also on485 r2u4 autocran

Repository

74Stars
28Forks
7Open issues
3Open PRs
14Releases
1,718Commits
18Commit identities
redistrictinggerrymanderingsamplingrgeospatial
License file reads as GPL-2.0 · 1,718 commits · Last activity 2026-02-12 · 0% stars, 30d
Responsiveness
How these are sampled
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

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

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Issue templates
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-02-12 · The repository has a site deploy workflow

pkgdown site last built 2026-02-12

CRAN release process (2)
cran-comments.mdrevdep/
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-01-05
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
35 external dependencies (excludes base and recommended)

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.

Depends (2)
R >= 4.1.0redistmetrics
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Imports 3
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 3.0.1 (2021) · added in 2.0.1
Author · added in 2.0.1
Contributor
Contributor · added in 2.0.1
Contributor

Previously maintained by Ben Fifield (1.0 to 2.0.2).

Releases (22)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.3.2Latest
    record
    2026-02-12 · current release · diff ↗
  • 4.3.1
    record
    2025-10-01 · diff ↗
  • 4.3.0
    record
    2025-07-08 · diff ↗ ·
    added 4 exports
    proj_avg, proj_contr, proj_distr, redist.plot.contr_pfdr
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 4.2.0
    record
    2024-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.polsbypopper
    added 2 exports
    combine_scorers, pl
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2023-04-03
  • archivedRemoved from CRAN
    2023-04-03
    issues were not corrected in time
  • 4.1.1
    record
    2023-04-03 · diff ↗
  • 4.1.0
    record
    2023-03-19 · diff ↗ ·
    added 2 exports
    redist_ci, redist_mcmc_ci
  • 4.0.1
    record
    2022-06-16 · diff ↗ ·
    removed 4 exports
    flip_constraints_helper, imp_confint, redist.mergesplit, redist.smc
    added 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
  • R
    R 4.2.0 released · 2022-04-22
  • 3.1.5
    record
    2021-10-06 · diff ↗
  • 3.1.4
    record
    2021-09-19 · diff ↗
Show 24 earlier eventsHide 24 earlier events
  • 3.1.3
    record
    2021-09-14 · diff ↗
  • 3.1.1
    record
    2021-09-05 · diff ↗ ·
    removed 7 exports
    redist.choropleth, redist.enumerate, redist.map, redist.mcmc, redist.mcmc.anneal, redist.reindex, redist.samplepart
    added 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
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-05-15
  • 3.0.7
    record
    2021-05-15 · diff ↗
  • archivedRemoved from CRAN
    2021-04-21
    check problems were not corrected in time
  • 3.0.1
    record
    2021-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 CRAN
    2020-10-14
  • 2.0.2
    record
    2020-10-14 · diff ↗
  • archivedRemoved from CRAN
    2020-10-04
    check issues were not corrected in time
  • 2.0.1
    record
    2020-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
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3-3
    record
    2018-12-15 · diff ↗
  • 1.3-2
    record
    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
    record
    2017-03-15 · diff ↗
  • 1.3
    record
    2016-12-21 · diff ↗ ·
    added 5 exports
    redist.mcmc.mpi, redist.combine, redist.combine.mpi, redist.enumerate, redist.findparams
  • R
    R 3.3.0 released · 2016-05-03
  • 1.2
    record
    2015-08-21 · diff ↗
  • 1.1
    record
    2015-05-19 · diff ↗
  • 1.0
    record
    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

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for redist version 4.3.2 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

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