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:
- Go to the Actions tab of the GitHub repository.
- Click on the latest run of the “Build and Archive” workflow.
- At the bottom of the page, in the Artifacts section, download the
spacemodR-archivefile. - Unzip the file to obtain the
.tar.gzsource file. - 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.