Skip to content

redistmetrics

1.0.11

Redistricting Metrics

4packages depend
8.1Kdownloads / year
69.3%test coverage
9/13checks pass

Overview

About
Maintained by Christopher T. KennyFirst published 2021-12-206 releasesCRAN page ↗GitHub ↗

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

CRAN checks
4NOTE9OK
Failing flavors
  • 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
Slowest check: 5.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.14
69.3%
Coverage · measured lines
98%
Documentation · exports
12
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 428 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
54%

Downloads

8.1K
CRAN downloads in the past year
Rank #5,995 · ~22/day · ~673/mo
Daily download trend is not available in this view yet.
35230 days
1.6K90 days
8.1K1 year
Compare downloads with other packages →
Also on983 r2u20 autocran

Repository

Repository
11Stars
2Forks
2Open issues
0Open PRs
2Releases
217Commits
6Contributors
217 commits · Last activity 2026-06-26 · +10% stars, 30d

Stars over time

2024-01-04 · 92026-07-07 · 11

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/redistmetrics on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Enhances (0)
none
Reverse dependencies
4direct
0indirect

Code & Tests

Code Composition
R 3,832 (45%)Rd 2,071 (24%)C++ 1,626 (19%)Vignettes 943 (11%)C 28 (0%)
Code characteristics
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

Loading call graph…

Lowest coverage

179 functions
FunctionCycloCoverage
list_fn exp10%
part_dislocation exp70%
splits_district_fuzzy exp10%
splits_sub_count exp40%
tally exp50%
.onLoad10%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
nh_plansredist_plans/tbl_df/tbl/data.frame104 × 3

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.11Latest
    2025-12-15 · current release · diff ↗
  • 1.0.9
    2025-04-29 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.7
    2023-12-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.2
    2022-04-11 · diff ↗
  • 1.0.1
    2022-02-17 · diff ↗
  • 1.0.0
    2021-12-20
  • R
    R 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
Report a problem with this page →