redistmetrics
1.0.11Redistricting Metrics
Overview
Reliable and flexible tools for scoring redistricting plans using common measures and metrics. These functions provide key direct access to tools useful for non-simulation analyses of redistricting plans, such as for measuring compactness or partisan fairness. Tools are designed to work with the 'redist' package seamlessly.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE2026-07-1611 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2212 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
- ERROR2026-04-1811 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 54%
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/redistmetrics on 2026-07-19.
Show all practices
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 11 max
- Test cases
- 45 / 0.14 per code line
- System requirements
- 1 external
Test coverage
Line coverage
69%
Expression
70.5%
Tests / Examples
69.3% / 78% ex
Functions
179 49 exported
Complexity
2.7 avg / 11 max
Call network
179 nodes / 213 edges
Call graph
Open call graph →Lowest coverage
179 functions| Function | Cyclo | Coverage |
|---|---|---|
| list_fn exp | 1 | 0% |
| part_dislocation exp | 7 | 0% |
| splits_district_fuzzy exp | 1 | 0% |
| splits_sub_count exp | 4 | 0% |
| tally exp | 5 | 0% |
| .onLoad | 1 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| nh_plans | redist_plans/tbl_df/tbl/data.frame | 104 × 3 | – |
People & History
6 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0.11Latest
- 1.0.92025-04-29 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.72023-12-12 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.22022-04-11 · diff ↗
- 1.0.12022-02-17 · diff ↗
- 1.0.02021-12-20
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-12-20
- Total releases
- 6 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 120 KB / 4 files
- Download size
- 260 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet