Skip to content

geobounds

1.0.1Package record

Download Administrative Boundary Data from 'geoBoundaries'

0packages depend
3.4Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.1
  • 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 returns NULL when 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 returns NULL when a download fails or no requested country is available, and validates download options before requesting data.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 620 wordsVignettesYes · 1 · staticNEWSYes · 100% structured · mentions 1.0.1Citation fileYes · cites a publicationWebsiteYes · pkgdown

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

3.4K
CRAN downloads in the past year
Rank #7,528 · ~9/day · ~284/mo
Daily download trend is not available in this view yet.
44030 days
1.2K90 days
3.4K1 year
Compare downloads with other packages →
Also on78 r2u4 autocran

Repository

11Stars
0Forks
0Open issues
0Open PRs
6Releases
238Commits
3Commit identities
administrative-boundariesapigeoboundariesrr-packagespatial-datacrancran-r
238 commits · Last activity 2026-10-17 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-11-05 · 12026-08-21 · 11
PracticesBeta

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.

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 (6)
Code of conductContributing guideIssue templatesSupport guide

Funding links: GitHub Sponsors, Ko-fi

The repository owner accepts GitHub Sponsors

Docs source (4)
README.qmdpkgdown

GitHub Pages site last deployed 2026-10-17 · The repository has a site deploy workflow

pkgdown site last built 2026-10-17

Coverage (1)
Coverage reporting
Show all practicesHide 5 practices
Reproducibility and dev environment (1)
data-raw/
Research and citation (2)
CITATION.cffcodemeta.json
Automation and maintenance (1)
Dependabot
Lint, format, editor (6)
lintrLint workflowjarlAirVS CodeRStudio project
Git structural (1)
.gitattributes
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-03-22
    Seen in the repository: .github/agents, .github/skills
    Commits: at least 1 crediting it in the message
  • Claude Codefirst seen 2026-04-25
    Seen in the repository: .claude
    Named in .Rbuildignore: .claude
  • Codexfirst seen 2026-07-18
    Seen in the repository: .codex
    Named in .Rbuildignore: .codex
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
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
12 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1.0
Imports (7)
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 (2026), Copyright holder
Data contributor · added in 1.0.1
for the geoBoundaries project
Listed in earlier versions (1)
William and Mary geoLab
no longer listed · 0.1.0 to 1.0.0
Releases (5)

Pick two releases to compare their code metrics.

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for geobounds version 1.0.1 [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