Skip to contents

giscoR 1.0.0

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/.

Major changes

  • 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.

Compatibility and performance

  • 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().

Renamed functions

We renamed several functions to improve clarity and consistency:

Old names remain available as aliases.

Argument updates

  • Add ext argument to control file format (”gpkg”, ”shp”, ”geojson”).
  • Update default year to the latest release (#105).

Dataset updates

We updated all bundled datasets to their latest versions and added new ones:

The datasets gisco_countries, gisco_nuts, and gisco_coastallines are 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 parameters.

Deprecations

Other updates

  • Add Eurostat as copyright holder.
  • Rewrite the full test suite.
  • Review and improve documentation.
  • Reorganize pkgdown site.
  • Use cli for all messages.

giscoR 0.6.1

CRAN release: 2025-01-27

giscoR 0.6.0

CRAN release: 2024-08-28

Data updates

giscoR 0.5.1

CRAN release: 2024-07-06

giscoR 0.5.0

CRAN release: 2024-05-29

giscoR 0.4.2

CRAN release: 2024-03-27

  • Update documentation to avoid CRAN warnings (#81).
  • Rebuild datasets.

giscoR 0.4.1

CRAN release: 2024-03-15

  • Clarify where country and region arguments apply (#50, #75).
  • Migrate from httr to httr2.
  • Remove tgs00026 dataset.

giscoR 0.4.0

CRAN release: 2023-10-30

giscoR 0.3.5

CRAN release: 2023-06-30

  • Review examples for CRAN issues.
  • Add gisco_detect_cache_dir().
  • Improve error handling: return informative message and NULL.

giscoR 0.3.4

CRAN release: 2023-05-26

  • Update tests and documentation.

giscoR 0.3.3

CRAN release: 2023-02-16

giscoR 0.3.2

CRAN release: 2022-08-13

  • Fix CRAN-requested HTML5 issue.

giscoR 0.3.1

CRAN release: 2021-10-06

giscoR 0.3.0

CRAN release: 2021-09-27

  • Transfer package to rOpenGov.
  • Improve caching:
  • Fix cache = FALSE behavior.
  • Add new tests.
  • Update documentation and examples.
  • Refactor ?gisco_get documentation.
  • Add eurostat to Suggests.
  • Remove lwgeom.
  • Update internal grid.
  • Replace tmap with ggplot2.

giscoR 0.2.4

CRAN release: 2021-04-13

  • Add eu field to ?gisco_countrycode.
  • Fix documentation typos.
  • Add vignette.
  • Move to roxygen2.
  • Move lwgeom to Imports.
  • Replace cartography with tmap.

giscoR 0.2.3

  • Update documentation.
  • Release DOI.

giscoR 0.2.2

CRAN release: 2020-11-23

  • Remove vignette.

giscoR 0.2.1

  • Remove CRAN notes.
  • Improve documentation.
  • Fix CRAN checks.

giscoR 0.2.0

CRAN release: 2020-11-12

giscoR 0.1.1

CRAN release: 2020-10-28

  • Add tgs00026 dataset.
  • Remove eurostat dependency.

giscoR 0.1.0

CRAN release: 2020-10-13

  • First stable release.