flexsdm: Flexible Species Distribution Modeling Workflow

Provides a flexible and comprehensive workflow for species distribution modeling, from data preparation (occurrence filtering, calibration areas, pseudo-absence and background sampling, data partitioning, and collinearity reduction) to model fitting, tuning, evaluation, prediction, ensemble modeling, and post-processing. The package is described in Velazco et al. (2022) <doi:10.1111/2041-210X.13874>. Implemented methods include the Shape metric to measure model extrapolation of Velazco et al. (2023) <doi:10.1111/ecog.06992>, ensembles of small models of Breiner et al. (2015) <doi:10.1111/2041-210X.12403> and Breiner et al. (2018) <doi:10.1111/2041-210X.12957>, Gaussian process models of Golding and Purse (2016) <doi:10.1111/2041-210X.12523>, and occurrence-based constraints for post-processing predictions of Mendes et al. (2020) <doi:10.1016/j.ecolmodel.2020.109180>.

Version: 1.4.2
Depends: R (≥ 3.5.0)
Imports: doParallel, dplyr, foreach, gbm, grDevices, kernlab, maxnet, mgcv, nnet, randomForest, spThin, terra (≥ 1.5-21), methods, utils, ggplot2, patchwork, Rcpp
LinkingTo: Rcpp
Suggests: covr, fs, knitr, rmarkdown, testthat (≥ 3.0.0), tibble, tidyr
Published: 2026-10-24
DOI: 10.32614/CRAN.package.flexsdm (may not be active yet)
Author: Santiago J.E. Velazco ORCID iD [aut, cre], Brooke Rose ORCID iD [aut], André F.A. Andrade ORCID iD [aut], Ignacio Minoli ORCID iD [aut], Janet Franklin ORCID iD [aut]
Maintainer: Santiago J.E. Velazco <sjevelazco at gmail.com>
BugReports: https://github.com/sjevelazco/flexsdm/issues
License: GPL (≥ 3)
URL: https://sjevelazco.github.io/flexsdm/, https://github.com/sjevelazco/flexsdm
NeedsCompilation: yes
Citation: flexsdm citation info
Materials: README, NEWS
CRAN checks: flexsdm results

Documentation:

Reference manual: flexsdm.html , flexsdm.pdf
Vignettes: Where flexsdm was cited? (source)
flexsdm: Overview of Pre-modeling functions (source)
flexsdm: Overview of Modeling functions (source)
flexsdm: Overview of Post-modeling functions (source)
flexsdm: Red Fir example (source)
flexsdm: Modeling a rare species (source)
flexsdm: Tools to explore extrapolation in SDMs (source)
Species distribution modeling for several species and climate change scenarios (source, R code)

Downloads:

Package source: flexsdm_1.4.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Reverse dependencies:

Reverse suggests: glossa

Linking:

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