Data & Functions for Working with US ZIP Codes
Overview
Make working with ZIP codes in R painless with an integrated dataset of U.S. ZIP codes and functions for working with them. Search ZIP codes by multiple geographies, including state, county, city & across time zones. Also included are functions for relating ZIP codes to Census data, geocoding & distance calculations. New analyses can select an immutable modern data bundle through the next-generation API, while the historical interface remains compatible with version 0.3.5 for reproducible research.
Test-only fix for the CRAN check ERROR
- A unit test asserted that the R < 4.0 session-temporary cache path did not contain the user's home directory. On the CRAN Debian check hosts the R session temporary directory itself is located under the checker's home directory, so the assertion failed there even though the package behaved correctly. The test now checks the actual contract: the old-R cache path is
file.path(tempdir(), "zipcodeR-data")and differs from the persistenttools::R_user_dir()location used on R 4.0 or newer. - No package code, documentation, exported API, or bundled dataset changed. The 0.3.5 reproducibility contract and the
_ngAPI are identical to 0.4.0.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-24
- ERROR11 OK, 1 NOTE, 1 ERROR2026-09-09
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 38 (1 internal)includes a package overview page
- Examples that run
- 81%13 run in a plain check · 3 never run
- Exported functions with examples
- 47%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 10
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
14 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/gavinrozzi/zipcoder 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-09-11 · The repository has a site deploy workflow
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-04Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 30 crediting it in the message
- Claude Fable 525 commits · Aug 2026
- Claude Opus 53 commits · Aug to Sep 2026
- Claude Fable 5.11 commit · Sep 2026
- Claude Opus 4.51 commit · Jan 2026
Dependencies
Installing zipcodeR adds 62 packages (40 with compiled code, 54 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, sp 4.3 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.4.1Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.4.02022-10-03 · diff ↗ ·
added 19 exports
download_comprehensive_data, download_zip_data_bundle, geocode_zip_ng, get_cd_ng, get_tracts_ng, is_zcta_ng, normalize_zip_ng, read_zip_data_bundle, reverse_zipcode_ng, search_cd_ng, search_city_ng, search_county_ng, search_fips_ng, search_radius_ng, search_state_ng, search_tz_ng, zip_data_provenance, zip_data_version, zip_distance_ng - 0.3.52022-10-04 · diff ↗
- 0.3.42022-06-25 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.3.32021-09-22 · diff ↗
- 0.3.22021-09-02 · diff ↗
- 0.3.12021-06-10 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.3.0
- 0.2.0
- 0.1.02020-09-17
Show 1 earlier eventHide 1 earlier event
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-09-17
- Total releases
- 10 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 3.5 MB / 3 files
- Download size
- 3.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("zipcodeR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.simpa.2021.100099.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.