- Use
testthat::local_mocked_bindings()on API error testing. - Adapt vignettes to Quarto.
- Bump minimal httr2 version to 1.2.0 (#126).
- Query timeout can be controlled with
options(gisco_timeout)usinghttr2::req_timeout(). Default value ishttr2::req_timeout(..., seconds = 300)(5 minutes) (#123).
- Fix a bug that overwrites the internal data base on a new session with the cached version. Now the cache should be persistent.
- Update
?gisco_db. gisco_get_urban_audit()andgisco_get_unit_urban_audit(): Default year changed to the latest available: 2024.
This major release introduces a full overhaul of the codebase and test suite.
Requests now use httr2, and GeoPackage (”gpkg”) becomes the preferred
download format when available. Cached files are reorganized into topic-based
subfolders for easier management.
Because of internal changes, existing caches are not compatible with this release and must be rebuilt.
Database management has also been improved. Instead of relying on the static
?gisco_db dataset, the package now stores the database in the cache. This
cached database is used for all API calls and can be updated via
gisco_get_cached_db(update_cache = TRUE). In practice, this means that when
GISCO publishes a new yearly release, you can access the new updated data simply
by refreshing the cached database without waiting for a new version of
giscoR.
We have transitioned from rappdirs::user_config_dir() to tools::R_user_dir()
for managing your persistent cache directory. If you are a heavy giscoR user
and already have a cache directory in place, you'll receive a one-time friendly
message informing you about this migration. Consider it a warm welcome to
giscoR 1.0.0 😉.
The package now requires R ≥ 4.1, and dependency updates improve both
performance and maintainability. All functions return tidy objects (tibbles or
sf objects with tibble data).
Dataset subsetting is now performed at read time using GDAL's query capabilities
(sf::read_sf()), improving performance and reducing file size. The
geojsonsf dependency is no longer required.
Several new functions and arguments have been added, some functions renamed, and one deprecated. All bundled datasets have been updated to their latest versions.
We recommend reviewing the updated documentation at https://ropengov.github.io/giscoR/.
- Refactor code and test suite for improved stability.
- Switch API requests to httr2.
- Adopt GeoPackage (
”gpkg”) as the preferred download format. - Reorganize cache into topic-based subfolders.
Note: Previous caches must be recreated.
- Require R ≥ 4.1.
- Update dependencies:
- Add: cli, httr2, lifecycle, tibble
- Remove: geojsonsf
- Return tidy objects consistently.
- Perform dataset subsetting at read time using GDAL queries via
sf::read_sf().
- Metadata and database utilities:
gisco_get_cached_db()gisco_get_metadata()
gisco_get_census()for accessing census grid data.- New separate functions to access unit data (replacing
gisco_get_units()):gisco_get_unit_country()gisco_get_unit_nuts()gisco_get_unit_urban_audit()
- Functions to access the GISCO ID service
API
gisco_id_api_geonames()gisco_id_api_nuts()gisco_id_api_lau()gisco_id_api_country()gisco_id_api_river_basin()gisco_id_api_biogeo_region()gisco_id_api_census_grid()
We renamed several functions to improve clarity and consistency:
?gisco_addressapi→?gisco_address_apigisco_get_coastallines()→gisco_get_coastal_lines()gisco_get_postalcodes()→gisco_get_postal_codes()
Old names remain available as aliases.
- Add
extargument to control file format (”gpkg”,”shp”,”geojson”). - Update default
yearto the latest release (#105).
We updated all bundled datasets to their latest versions and added new ones:
- Update
?gisco_dbto the newest data. - Add
?gisco_countries_2024(replacesgisco_countries). - Add
?gisco_nuts_2024(replacesgisco_nuts). - Add
?gisco_coastal_lines(replacedgisco_coastallines).
The datasets
gisco_countries,gisco_nuts, andgisco_coastallinesare no longer available. Any code that accessed them directly (e.g.,giscoR::gisco_countries) will now fail.\Please use the updated datasets or, preferably, retrieve them via the corresponding functions such as
gisco_get_countries()with default arguments.
- Deprecate
gisco_get_units().- Functionality is now available through
gisco_get_metadata()and the?gisco_get_unitfamily.
- Functionality is now available through
- Deprecate
cacheargument in heavy-download functions (gisco_get_lau(),gisco_get_communes()). - In
gisco_bulk_download(), renameid_giscoR→id.
- Add Eurostat as copyright holder.
- Rewrite the full test suite.
- Review and improve documentation.
- Reorganize pkgdown site.
- Use cli for all messages.
- Fix source filtering in
gisco_get_lau().
- Add
yearargument togisco_get_education()andgisco_get_healthcare(); support 2020 and 2023 data. - Add support for 2024 datasets in
gisco_get_nuts()andgisco_get_countries()(#93, @hannesaddec).
- Use CRAN DOI.
- Fix API entry points in
gisco_get_education(). - Review failing examples.
- Add
gisco_get_education(). - Add support for the GISCO Address API (see
?gisco_addressapi). - Add jsonlite to Imports.
- Update
?gisco_db. - Update defaults:
gisco_get_lau()→”2021”gisco_get_urban_audit()→”2021”
- Update documentation URLs.
- Update documentation to avoid CRAN warnings (#81).
- Rebuild datasets.
- Clarify where
countryandregionarguments apply (#50, #75). - Migrate from httr to httr2.
- Remove
tgs00026dataset.
- Add
geocolumn togisco_get_nuts()(#62). - Update CRAN examples.
- Add httr dependency.
- Review examples for CRAN issues.
- Add
gisco_detect_cache_dir(). - Improve error handling: return informative message and
NULL.
- Update tests and documentation.
- Fix URLs in
gisco_get_healthcare()(#51).
- Fix CRAN-requested HTML5 issue.
- Add copyright section.
- Add lwgeom to Suggests.
- Update behavior of
gisco_get_airports()andgisco_get_ports():- Only year available: 2013
- Always download fresh data
- Add
gisco_get_postalcodes(). - Update
?gisco_db.
- Transfer package to rOpenGov.
- Improve caching:
- Add
gisco_set_cache_dir() - Persist cache directory across sessions
- Add
gisco_clear_cache()
- Add
- Fix
cache = FALSEbehavior. - Add new tests.
- Update documentation and examples.
- Refactor
?gisco_getdocumentation. - Add eurostat to Suggests.
- Remove lwgeom.
- Update internal grid.
- Replace tmap with ggplot2.
- Add
eufield to?gisco_countrycode. - Fix documentation typos.
- Add vignette.
- Move to roxygen2.
- Move lwgeom to Imports.
- Replace cartography with tmap.
- Update documentation.
- Release DOI.
- Remove vignette.
- Remove CRAN notes.
- Improve documentation.
- Fix CRAN checks.
- Remove colorspace.
- Require R ≥ 3.6.0.
- Reorder arguments in
?gisco_getfunctions. - Rewrite internal utilities.
- Add
verboseargument. - Rewrite
?gisco_db. - Add:
gisco_bulk_download()gisco_check_access()gisco_get_airports()gisco_get_grid()gisco_get_ports()gisco_get_units()
- Update
gisco_get_countries()andgisco_get_nuts()for faster downloads.
- Add
tgs00026dataset. - Remove eurostat dependency.
- First stable release.