biomod2
Ensemble Platform for Species Distribution Modeling
v4.3-4-5
·
Jan 30, 2026
·
GPL-3
Description
Functions for species distribution modeling, calibration and evaluation, ensemble of models, ensemble forecasting and visualization. The package permits to run consistently up to 10 single models on a presence/absences (resp presences/pseudo-absences) dataset and to combine them in ensemble models and ensemble projections. Some bench of other evaluation and visualisation tools are also available within the package.
Downloads
6.3K
Last 30 days
1510th
13.7K
Last 90 days
13.7K
Last year
Trend: -15.5% (30d vs prior 30d)
CRAN Check Status
1
ERROR
13
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | ERROR |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (14 non-OK)
OK
r-devel-linux-x86_64-debian-clang
*
OK
r-devel-linux-x86_64-debian-gcc
*
OK
r-devel-linux-x86_64-fedora-clang
*
OK
r-devel-linux-x86_64-fedora-gcc
*
ERROR
r-devel-macos-arm64
examples
Running examples in ‘biomod2-Ex.R’ failed
The error most likely occurred in:
> ### Name: bm_CrossValidation
> ### Title: Build cross-validation table
> ### Aliases: bm_CrossValidation bm_CrossValidation_user.defined
> ### bm_CrossValidation_user.defined,BIOMOD.formated.data-method
> ### bm_CrossValidation_user.defined,BIOMOD.formated.data.PA-method
> ### bm_CrossValidation_random
> ### bm_CrossValidation_random,BIOMOD.formated.data-method
> ### bm_CrossValidation_random,BIOMOD.formated.data.PA-method
> ### bm_CrossValidation_kfold
> ### bm_CrossValidation_kfold,BIOMOD.formated.data-method
> ### bm_CrossValidation_kfold,BIOMOD.formated.data.PA-method
> ### bm_CrossValidation_block
> ### bm_CrossValidation_block,BIOMOD.formated.data-method
> ### bm_CrossValidation_block,BIOMOD.formated.data.PA-method
> ### bm_CrossValidation_strat
> ### bm_CrossValidation_strat,BIOMOD.formated.data-method
> ### bm_CrossValidation_strat,BIOMOD.formated.data.PA-method
> ### bm_CrossValidation_env
> ### bm_CrossValidation_env,BIOMOD.formated.data-method
> ### bm_CrossValidation_env,BIOMOD.formated.data.PA-method
>
> ### ** Examples
>
> library(terra)
terra 1.9.1
Attaching package: ‘terra’
The following object is masked from ‘package:plotrix’:
rescale
>
> # Load species occurrences (6 species available)
> data(DataSpecies)
> head(DataSpecies)
X_WGS84 Y_WGS84 ConnochaetesGnou GuloGulo PantheraOnca PteropusGiganteus
1 -94.5 82.00001 0 0 0 0
2 -91.5 82.00001 0 1 0 0
3 -88.5 82.00001 0 1 0 0
4 -85.5 82.00001 0 1 0 0
5 -82.5 82.00001 0 1 0 0
6 -79.5 82.00001 0 1 0 0
TenrecEcaudatus VulpesVulpes
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
>
> # Select the name of the studied species
> myRespName <- 'GuloGulo'
>
> # Get corresponding presence/absence data
> myResp <- as.numeric(DataSpecies[, myRespName])
>
> # Get corresponding XY coordinates
> myRespXY <- DataSpecies[, c('X_WGS84', 'Y_WGS84')]
>
> # Load environmental variables extracted from BIOCLIM (bio_3, bio_4, bio_7, bio_11 & bio_12)
> data(bioclim_current)
> myExpl <- terra::rast(bioclim_current)
>
> ## Don't show:
> myExtent <- terra::ext(0,30,45,70)
> myExpl <- terra::crop(myExpl, myExtent)
> ## End(Don't show)
>
> # --------------------------------------------------------------- #
> # Format Data with true absences
> myBiomodData <- BIOMOD_FormatingData(resp.name = myRespName,
+ resp.var = myResp,
+ resp.xy = myRespXY,
+ expl.var = myExpl)
-=-=-=-=-=-=-=-=-=-=-=-=-=-= GuloGulo Data Formating -=-=-=-=-=-=-=-=-=-=-=-=-=-=
!!! Some data are located in the same raster cell.
Please set `filter.raster = TRUE` if you want an automatic filtering.
! Some NAs have been automatically removed from your data
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Done -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> # --------------------------------------------------------------- #
> # Create the different validation datasets
>
> # random selection
> cv.r <- bm_CrossValidation(bm.format = myBiomodData,
+ strategy = "random",
+ nb.rep = 3,
+ k = 0.8)
Checking Cross-Validation arguments...
> Random cross-validation selection
>
> # k-fold selection
> cv.k <- bm_CrossValidation(bm.format = myBiomodData,
+ strategy = "kfold",
+ nb.rep = 2,
+ k = 3)
Checking Cross-Validation arguments...
> k-fold cross-validation selection
>
> # block selection
> cv.b <- bm_CrossValidation(bm.format = myBiomodData,
+ strategy = "block")
Checking Cross-Validation arguments...
> Block cross-validation selectionError in .local(bm.format, ...) : Package 'ENMeval' not found
Calls: bm_CrossValidation ... bm_CrossValidation_block -> bm_CrossValidation_block -> .local
Execution halted
OK
r-devel-windows-x86_64
*
OK
r-oldrel-macos-arm64
*
OK
r-oldrel-macos-x86_64
*
OK
r-oldrel-windows-x86_64
*
OK
r-patched-linux-x86_64
*
OK
r-release-linux-x86_64
*
OK
r-release-macos-arm64
*
OK
r-release-macos-x86_64
*
OK
r-release-windows-x86_64
*
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR
r-devel-macos-arm64
examples
Running examples in ‘biomod2-Ex.R’ failed The error most likely occurred in: > ### Name: bm_CrossValidation > ### Title: Build cross-validation table > ### Aliases: bm_CrossValidation bm_CrossValidation_user.defined > ### bm_CrossValidation_user.defined,BIOMOD.formated.data-method > ### bm_CrossValidation_user.defined,BIOMOD.formated.data.PA-method > ### bm_CrossValidation_random > ### bm_CrossValidation_random,BIOMOD.formated.data-method > ### bm_CrossValidation_random,BIOMOD.formate
Reverse Dependencies (4)
suggests
Dependency Network
Version History
new
4.3-4-5
Mar 9, 2026