Changelog
Source:NEWS.md
spacemodR 0.3.0
New Features & Improvements
-
Soil interpolation (kriging): new functions to build soil contamination rasters from sampling points, without additional dependency:
soil_variogram(),fit_soil_variogram(),soil_vgm(),krige_soil()(ordinary kriging or kriging with external drift),cv_soil()(random or spatial-block cross-validation),kernel_smooth_soil()(Gaussian smoothing reusingcompute_kernel()),soil_grid()andsource_covariates()(distance / wind covariates around a point source). New datasetsoil_metaleurop(595 soil Cd, Pb, Zn samples) and new article “Soil contamination maps by kriging”. -
EUNIS land cover: new function
get_eunis_data()to download EUNIS Level 1 / Level 2 land cover rasters for a region of interest from the EEA Ecosystem Type Map v3.1 service, and new lookup datasetref_eunis. -
Trophic graph plots:
plot()for trophic objects gains link weights and custom colors. - Dispersal: cleaned up the kernel dispersal code.
spacemodR 0.2.0
Breaking Changes
-
Refactored trophic fluxes interface: The
intake()function has been completely redesigned and renamed toflux()to better reflect the mathematical and ecological concept of transfer rates. -
New pipe-friendly syntax: The definition of transfer parameters no longer uses multiple named arguments. Users must now initialize the table with
flux()and chain specific rules using the newadd_flux()function. -
Namespace conflict resolution: The internal utility function previously named
flux()(used within thetransfer()function) has been renamed to avoid conflicts with the new main API.
New Features & Improvements
-
New
add_flux()function: Allows for adding transfer rules in a readable, sequential manner (e.g.,add_flux(from = "soil", to = "plant", value = ~ 10^x / 32)). -
Global target rules: In
add_flux(), if the source compartment (from) is not specified, the rule (value) is automatically applied to all links pointing to the target compartment (to). -
Safe default values: The
flux()function now features an explicitdefaultparameter. It is highly recommended to use1(full transfer) or0(no transfer) instead ofNAto prevent the propagation of missing values during subsequent model calculations.
spacemodR 0.1.3
CRAN release: 2026-02-20
-
Bug Fixes:
- Fixed an
rlang_error(replacement has length zero) inspacemodelraster layer sub-assignment within the Tutorial vignette. - Removed non-ASCII characters (smart quotes) from the
DBFunc_BirdFuncDatdataset to pass CRAN checks. - Resolved R CMD Check notes regarding
no visible binding for global variable(weight_global,weight_foraging,resistance).
- Fixed an
-
Documentation & Data:
- Added complete
roxygen2documentation for internal datasets:FmrBT,DBFunc_MamFuncDat, andDBFunc_BirdFuncDat. - Translated and enhanced the
Food_Intakevignette into professional scientific English. - Updated the
pkgdownwebsite structure to use a clean 3-tier navigation system (Quick Start, Core Guides, Example Zoo).
- Added complete
spacemodR 0.1.2
-
New Features:
- Added the
Food_Intakemodule and dataset integration (FmrBT, EltonTraits) to compute Daily Food Intake (DFI). - Included the Eco-SSL (Ecological Soil Screening Levels) risk index assessment example.
- Added the
-
Enhancements:
- Improved the
Omniscape_Connectivitytutorial with real-world spatial data for the Wood Mouse (Apodemus sylvaticus).
- Improved the