Workflow for Environmental Risk Assessment: Habitat, Food Web, Dispersal, Exposure and Risk

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.


spacemodR

Documentation

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.

📦 Installation

The package is automatically built via GitHub Actions. You can install it by retrieving the archive generated by the continuous integration system.

Via GitHub Action Artifact

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:

  1. Go to the Actions tab of the GitHub repository.
  2. Click on the latest run of the "Build and Archive" workflow.
  3. At the bottom of the page, in the Artifacts section, download the spacemodR-archive file.
  4. Unzip the file to obtain the .tar.gz source file.
  5. Install the package in R using the following command:
# 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.

Using the docker file

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("spacemodR")

0.1.3 by Virgile Baudrot, 8 months ago


Browse source code at https://github.com/cran/spacemodR


Authors: Virgile Baudrot [aut, cre] , Léa Bariod [ctb] , Clémentine Fritsch [ctb] , Renaud Scheifler [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, httr, sf, terra

Suggests knitr, rmarkdown, testthat, JuliaCall


See at CRAN