Skip to content

deprivateR

0.2.0Package record

Calculating and Analyzing Measures of Deprivation in the United States

0packages depend
2.8Kdownloads / year
78.5%test coverage
13/13flavors OK

Overview

About

Provides a unified framework to building Area Deprivation Index (ADI), Social Vulnerability Index (SVI), and Neighborhood Deprivation Index (NDI) deprivation measures and accessing related data from the U.S. Census Bureau such as Gini coefficient data. Tools are also available for calculating percentiles, quantiles, and for creating clear map breaks for data visualization.

Changes in 0.2.0

New features

  • Added dep_set_api_key() for easier Census API key management — checks for an explicit key, then the CENSUS_API_KEY env var, and prompts interactively if neither is found
  • Added a "Getting Started" vignette covering all supported indices, sample data workflows, and spatial output

Dependency changes

  • Removed stringr, english, tibble, and tidyselect from Imports, reducing hard dependencies from 14 to 10
  • Bumped minimum R version to 4.4

Improvements

  • Error messages now use cli formatting (tidyverse-style) instead of base stop()/warning()/message()
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
  • Internal code quality improvements: extracted shared helpers, reduced nesting, and removed code duplication across SVI/NDI processing
  • Expanded test suite with 350+ new assertions covering all exported functions and core internals

Bug fixes

  • Fixed territory (e.g., Puerto Rico) FIPS code validation in dep_get_index() — was incorrectly comparing abbreviations instead of FIPS codes
  • Fixed pkgdown site build failure caused by docs/ directory conflict

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-oldrel-macos-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 2 earlier changesHide 2 earlier changes
  • ERROR11 OK, 1 ERROR2026-04-25
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 953 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
8
Examples that run
88%7 run in a plain check (1 of them under a condition) · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #12,300 · ~8/day · ~237/mo
Daily download trend is not available in this view yet.
30330 days
90290 days
2.8K1 year
Compare downloads with other packages →
Also on80 r2u11 autocran

Repository

4Stars
1Forks
10Open issues
0Open PRs
2Releases
143Commits
2Commit identities
License file reads as Apache-2.0 · 143 commits · Last activity 2026-08-06
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-03-01 · 42026-07-07 · 4
PracticesBeta

15 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/pfizer-opensource/deprivater on 2026-10-21.

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 (4)
Code of conductContributing guideIssue templatesPR template
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-08-06 · The repository has a site deploy workflow

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (3)
lintrLint workflowRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-05-27
    Commits: at least 78 crediting it in the message
  • Claude Codefirst seen 2026-05-29
    Named in .Rbuildignore: .claude
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing deprivateR adds 136 packages (73 with compiled code, 116 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.4
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.0 (2025)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-06-01 · current release · diff ↗ ·
    added 1 export
    dep_set_api_key
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.0
    record
    2025-01-29
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-01-29
Total releases
2 / 1 yrs
License
Apache License (>= 2)
Minimum R
≥ 4.4
Download size
134 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("deprivateR")
Prener, C., & Wiemken, T. (2026). deprivateR: Calculating and Analyzing Measures of Deprivation in the United States (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.deprivateR

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 deprivateR version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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