rgeoboundaries (development version)
Breaking changes
The API has been completely revised to provide clearer function names and improve internal maintainability. Most old functions have been deprecated and will issue a warning when used, providing guidance on the appropriate replacement. Internally, calls to deprecated functions are redirected to their corresponding replacements.
Additionally, the former magical default country = NULL argument (which returned the global composite dataset) has been deprecated. It has been replaced with a dedicated function: gb_get_world().
Renamed functions:
-
geoboundaries()->gb_get()andgb_get_world(). The latter retrieves the composite global dataset, and per-country calls can be generated on the fly from this dataset. -
?gb_admfamily ->?gb_get_admfamily. -
gb_metadata()->gb_get_metadata(). -
gb_max_adm_lvl()->gb_get_max_adm_lvl().
Other changes
Internals
- Download logic is now implemented using httr2.
- Internal informational messages are generated using cli.
Documentation
- Reviewed
READMEfiles. - Create pkgdown site https://dieghernan.github.io/rgeoboundaries/.
- Add vignette.
Cache management
Cache handling has been fully reviewed:
- By default, the cache directory is located under
base::tempdir().
You can change it using:- Temporary cache (single R session):
gb_set_cache(path). - Persistent cache across R sessions:
gb_set_cache(path, install = TRUE). - Specific files: use the
pathargument in the corresponding function e.g.gb_get(..., path = path).
- Temporary cache (single R session):
Redesigned cache-management functions:
-
gb_set_cache(): configure where files are stored. -
gb_get_cache(): retrieve the active cache directory. -
gb_list_cache(): list files in the cache. -
gb_clear_cache(): remove all cached files (optionally removing the installed config). -
gb_delete_from_cache(): remove one or more specific cached files.
Package DESCRIPTION
- New maintainer: Diego Hernangómez (https://github.com/dieghernan/).
- Added William & Mary geoLab as copyright holder.
- Revised
TitleandDescriptionwith clearer links and citations. - Tidy dependencies.
New files added
-
inst/CITATION(usingbibentry()from https://doi.org/10.1371/journal.pone.0231866). -
inst/COPYRIGHTS. -
inst/REFERENCES.bib. CITATION.cff-
codemeta.jsonandinst/schemaorg.json.
