mapSpain 1.0.0
This major release introduces a full overhaul of the codebase and test suite.
Requests now use httr2, and 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.
We have transitioned from rappdirs::user_config_dir() to tools::R_user_dir()
for managing your persistent cache directory. If you are a heavy mapSpain
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 mapSpain 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).
Several new functions and arguments have been added, some functions renamed, and
some others deprecated. All bundled datasets have been updated to their latest
versions.
Breaking changes
- Minimum required R version is now 4.1.0.
- Removed dependency on slippymath (#126).
providerEspTileOptions()has been removed; use
leaflet::providerTileOptions()instead.- Removed dataset
?esp_munic.sf. - Removed dataset
?leaflet.providersESP.df(superseded in mapSpain
v0.8.0). - Removed dataset
?pobmun19; it has been replaced by?pobmun25. esp_get_grid_EEA()is deprecated and defunct, as the source file is no
longer available.
Deprecations and new function names
esp_getTiles()has been renamed toesp_get_tiles()(old name still
works).esp_get_country()has been renamed toesp_get_spain()(old name still
works).- In
esp_get_rivers():- Arguments
resolutionandspatialtypeare deprecated. - Wetlands support has been moved to the new
esp_get_wetlands()
function.
- Arguments
New features
- Added
esp_get_stations(), replacing
esp_get_railway(..., spatialtype = "point"). - Added
esp_siane_bulk_download()to download all SIANE datasets to a
specifiedcache_dirin a single step. - Added
esp_get_countries_siane()to retrieve all countries available in
SIANE at a given date. - Added
esp_get_spain_siane(), analogous toesp_get_spain(), using SIANE
data. - Added
esp_get_attributions()to retrieve the attributions of a tile
provider. - Added dataset
?esp_nuts_2024, replacing?esp_nuts.sf. esp_get_rivers()gains a newmoveCANargument.esp_get_tiles()can be used with providers that needs an API key.
What's Changed
- Bump dieghernan/cran-status-check from 1 to 2 by @dependabot[bot] in #120
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #122
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #123
- Remove slippymath by @dieghernan in #127
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #124
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #125
- mapSpain v1.0.0 by @dieghernan in #128
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #129
Full Changelog: v0.1.1...v1.0.0