A set of tools dedicated to modeling food web transfer based on an initial ground raster. It provides a directed acyclic graph structure for a set of rasters representing the flow of elements (e.g., food, energy, contaminants). It also includes tools for working with dispersal algorithms, enabling the combination of flux data with population movement.
Spacemod Habitat, Trophic, Dispersal, Exposure and Risk Mapping
spacemodR is an R package designed for spatial ecological risk modeling.
It integrates habitats, trophic webs, dispersal, and contaminant exposure
to build complex "spacemodels" linking geographic data (rasters, vectors)
with biological interactions.
The package is automatically built via GitHub Actions. You can install it by retrieving the archive generated by the continuous integration system.
The .github/workflows/build_and_release.yaml workflow is configured to build
the package and check its integrity on every push to the main branch.
To install the latest version:
spacemodR-archive file..tar.gz source file.# Replace the path with the location of your downloaded file
install.packages("path/to/spacemodR_0.1.0.tar.gz", repos = NULL, type = "source")
Note: Ensure that system dependencies (GDAL, PROJ, GEOS) are installed,
as the package depends on sf and terra.
docker build -t spacemodr .
docker run --rm -ti \
-p 8787:8787 \
-e PASSWORD=mdp \
-v /home/virgile/Downloads:/home/rstudio/data \
spacemodr
Go to http://localhost:8787, where user is rstudio and password: mdp.