geobounds (development version)
Breaking change
Functions for downloading data have been renamed to follow the convention object_verb() (see https://devguide.ropensci.org/pkg_building.html):
-
get_gb()->gb_get(). -
?get_gb_admfamily ->?gb_get_admfamily. -
get_gb_cgaz()->gb_get_cgaz(). -
get_gb_meta()->gb_get_metadata().
Additionally, the metadata argument has been removed. Use gb_get_metadata() instead.
Other changes
-
gb_get_adm5()added. -
gb_get_max_adm_lvl()added. - All functions:
- Source files: Use of the
.zip/.shpversion of the dataset instead of.geojson/.gpkg. This implies that the geojsonsf dependency inImportsis removed as it is not needed any more. As a consequence cached files with previous versions of the package are not used any more. - Improve detection for Antarctica and Kosovo.
- All functions return a
MULTIPOLYGON. - Function fails gracefully when the country file is not available (with neither errors nor warnings).
-
httr2::req_retry()implemented to avoid timeout / transient errors.
- Source files: Use of the
-
gb_get*(): In all functions now thecountryargument recognize mixed types (e.g.gb_get(country = c("Germany", "USA"))would work). -
gb_get_cgaz()get the latest data available on the repo https://github.com/wmgeolab/geoBoundaries/tree/main/releaseData. - Add DOI.
