Changelog
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