spacemodR: Spatial Environmental Risk Assessment Through Food Webs

A workflow for spatially explicit environmental risk assessment of contaminated sites: habitat, food web, dispersal, exposure and risk. Starting from a raster of soil contamination, the package builds habitat layers for a set of species, organises them in a directed acyclic graph representing a food web, and propagates the flow of elements (e.g., food, energy, contaminants) along its links. It also provides soil interpolation by kriging, dispersal by kernel convolution or by circuit theory (through the optional 'Julia' package 'Omniscape'), land cover retrieval for France ('OCS-GE') and Europe ('EUNIS'), and Bayesian calibration of transfer models with 'Stan'.

Version: 0.3.5
Depends: R (≥ 4.1.0)
Imports: dplyr, ggplot2, httr, methods, patchwork, Rcpp (≥ 0.12.0), rlang, rstan (≥ 2.18.1), rstantools (≥ 2.4.0), sf, terra, tools
LinkingTo: BH (≥ 1.66.0), Rcpp (≥ 0.12.0), RcppEigen (≥ 0.3.3.3.0), RcppParallel (≥ 5.0.1), rstan (≥ 2.18.1), StanHeaders (≥ 2.18.0)
Suggests: archive, knitr, rmarkdown, testthat (≥ 3.0.0), JuliaCall, tidyterra, scales, purrr, quarto, tidyr, leaflet, gstat
Published: 2026-10-12
DOI: 10.32614/CRAN.package.spacemodR
Author: Virgile Baudrot [aut, cre, cph], Léa Bariod [ctb], Clémentine Fritsch [ctb, cph], Renaud Scheifler [ctb]
Maintainer: Virgile Baudrot <virgile.baudrot at qonfluens.com>
BugReports: https://github.com/Qonfluens/spacemodR/issues
License: MIT + file LICENSE
URL: https://github.com/Qonfluens/spacemodR, https://qonfluens.github.io/spacemodR/
NeedsCompilation: yes
SystemRequirements: GNU make, Julia (optional, for dispersal with 'Omniscape')
Materials: README, NEWS
CRAN checks: spacemodR results

Documentation:

Reference manual: spacemodR.html , spacemodR.pdf
Vignettes: Getting Started: Overview of spacemodR (source, R code)
Getting Started: Vue d'ensemble de spacemodR (source, R code)
Tutorial (source, R code)

Downloads:

Package source: spacemodR_0.3.5.tar.gz
Windows binaries: r-devel: spacemodR_0.1.3.zip, r-release: spacemodR_0.1.3.zip, r-oldrel: spacemodR_0.1.3.zip
macOS binaries: r-release (arm64): spacemodR_0.1.3.tgz, r-oldrel (arm64): spacemodR_0.1.3.tgz, r-release (x86_64): spacemodR_0.3.5.tgz, r-oldrel (x86_64): spacemodR_0.3.5.tgz
Old sources: spacemodR archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=spacemodR to link to this page.

mirror server hosted at Truenetwork, Russian Federation.