Running examples in 'biomod2-Ex.R' failed
The error most likely occurred in:

> ### Name: BIOMOD.ensemble.models.out
> ### Title: 'BIOMOD_EnsembleModeling()' output object class
> ### Aliases: BIOMOD.ensemble.models.out BIOMOD.ensemble.models.out-class
> ###   show,BIOMOD.ensemble.models.out-method
> 
> ### ** Examples
> 
> 
> showClass("BIOMOD.ensemble.models.out")
Class "BIOMOD.ensemble.models.out" [package "biomod2"]

Slots:
                                                        
Name:               modeling.id                 dir.name
Class:                character                character
                                                        
Name:                   sp.name           expl.var.names
Class:                character                character
                                                        
Name:                models.out                    em.by
Class: BIOMOD.stored.models.out                character
                                                        
Name:               em.computed                em.failed
Class:                character                character
                                                        
Name:            em.models_kept        models.evaluation
Class:                      ANY BIOMOD.stored.data.frame
                                                        
Name:      variables.importance        models.prediction
Class: BIOMOD.stored.data.frame BIOMOD.stored.data.frame
                                                        
Name:    models.prediction.eval                     link
Class: BIOMOD.stored.data.frame                character
> 
> ## ----------------------------------------------------------------------- #
> library(terra)
terra 1.7.71
> 
> # 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)
> 
> ## ----------------------------------------------------------------------- #
> file.out <- paste0(myRespName, "/", myRespName, ".AllModels.models.out")
> if (file.exists(file.out)) {
+   myBiomodModelOut <- get(load(file.out))
+ } else {
+ 
+   # Format Data with true absences
+   myBiomodData <- BIOMOD_FormatingData(resp.var = myResp,
+                                        expl.var = myExpl,
+                                        resp.xy = myRespXY,
+                                        resp.name = myRespName)
+ 
+   # Create default modeling options
+   myBiomodOptions <- BIOMOD_ModelingOptions()
+ 
+   # Model single models
+   myBiomodModelOut <- BIOMOD_Modeling(bm.format = myBiomodData,
+                                       modeling.id = 'AllModels',
+                                       models = c('RF', 'GLM'),
+                                       bm.options = myBiomodOptions,
+                                       CV.strategy = 'random',
+                                       CV.nb.rep = 2,
+                                       CV.perc = 0.8,
+                                       metric.eval = c('TSS','ROC'),
+                                       var.import = 3,
+                                       seed.val = 42)
+ }

-=-=-=-=-=-=-=-=-=-=-=-=-=-= GuloGulo Data Formating -=-=-=-=-=-=-=-=-=-=-=-=-=-=

      ! No data has been set aside for modeling evaluation
      ! No data has been set aside for modeling evaluation
 !!! Some data are located in the same raster cell. 
          Please set `filter.raster = TRUE` if you want an automatic filtering.
      ! No data has been set aside for modeling evaluation
 ! Some NAs have been automatically removed from your data
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Done -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Build Single Models -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Checking Models arguments...

	> Automatic weights creation to rise a 0.5 prevalence
Creating suitable Workdir...


Checking Cross-Validation arguments...

   > Random cross-validation selection



-=-=-=-=-=-=-=-=-=-=-=-=-= GuloGulo Modeling Summary -=-=-=-=-=-=-=-=-=-=-=-=-=

 5  environmental variables ( bio3 bio4 bio7 bio11 bio12 )
Number of evaluation repetitions : 2
Models selected : RF GLM 

Total number of model runs: 4 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warning: executing %dopar% sequentially: no parallel backend registered


-=-=-=--=-=-=- GuloGulo_allData_RUN1_RF 

Model=Breiman and Cutler's random forests for classification and regression
	> RF modeling...
	Evaluating Model stuff...
	Evaluating Predictor Contributions...

  |                                                                            
  |                                                                      |   0%