Download Administrative Boundary Data from 'geoBoundaries'
Overview
Provides tools to download individual country boundaries and global composite boundaries from 'geoBoundaries' https://www.geoboundaries.org/ across multiple administrative ('ADM') levels. Returns boundaries as 'sf' objects for mapping and spatial analysis. Runfola et al. (2020) doi:10.1371/journal.pone.0231866 describe the underlying database.
- Argument errors now display braces in supplied values literally instead of interpreting them as message formatting.
- Numeric text ADM levels such as
"1"now resolve to the corresponding code, such as"ADM1". - Country inputs now reject empty or wholly unmatched values, and Kosovo aliases must match
"Kosovo"or"XKX"exactly. gb_clear_cache()now rejects unsafe cache locations before recursively deleting cached data. Cache functions also validate scalar arguments, report directory creation failures clearly and confirm that requested deletions succeeded.gb_get()now returnsNULLwhen no downloaded boundaries are available. It also rejects missing or non-scalar download options and invalid cache directory values before requesting data. Invalid cached archives are removed with an actionable error so a subsequent request can download them again.gb_get_max_adm_lvl()now derives the maximum level from each ADM label instead of assuming that available metadata levels are consecutive.gb_get_world()now returnsNULLwhen a download fails or no requested country is available, and validates download options before requesting data.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 9 (1 internal)includes a package overview page
- Examples that run
- 63%5 run in a plain check (3 of them under a condition) · 1 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 44% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 55%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 9
Stars over time
Releases over time
Issues over time
PRs over time
Commits over time
24 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/dieghernan/geobounds on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors, Ko-fi
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-17 · The repository has a site deploy workflow
pkgdown site last built 2026-10-17
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-03-22Seen in the repository: .github/agents, .github/skillsCommits: at least 1 crediting it in the message
- Claude Codefirst seen 2026-04-25Seen in the repository: .claudeNamed in .Rbuildignore: .claude
- Codexfirst seen 2026-07-18Seen in the repository: .codexNamed in .Rbuildignore: .codex
Dependencies
Installing geobounds adds 30 packages (21 with compiled code, 25 MB of source tarballs). Heaviest: sf 9.3 MB, s2 2.8 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Package metadata
- First published
- 2026-02-11
- Total releases
- 5 / 1 yrs
- License
- MIT + file LICENSE OSI · relicensed from CC BY 4.0 in 1.0.0
- Copyright
- Package code is MIT licensed. See file COPYRIGHTS for data and figure attribution.
- Minimum R
- ≥ 4.1.0
- Download size
- 524 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("geobounds")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.