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

> ### Name: BIOMOD.formated.data.PA
> ### Title: 'BIOMOD_FormatingData()' output object class (with
> ###   pseudo-absences)
> ### Aliases: BIOMOD.formated.data.PA BIOMOD.formated.data.PA-class
> ###   BIOMOD.formated.data.PA,numeric,data.frame-method
> ###   BIOMOD.formated.data.PA,numeric,SpatRaster-method
> 
> ### ** Examples
> 
> 
> showClass("BIOMOD.formated.data.PA")
Class "BIOMOD.formated.data.PA" [package "biomod2"]

Slots:
                                                                              
Name:        PA.strategy          PA.table          dir.name           sp.name
Class:         character        data.frame         character         character
                                                                              
Name:              coord      data.species      data.env.var         data.mask
Class:        data.frame           numeric        data.frame              list
                                                                              
Name:      has.data.eval        eval.coord eval.data.species eval.data.env.var
Class:           logical        data.frame           numeric        data.frame

Extends: "BIOMOD.formated.data"
> 
> ## ----------------------------------------------------------------------- #
> library(terra)
terra 1.7.18
> 
> # 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 pseudo-absences : random method
> myBiomodData <- BIOMOD_FormatingData(resp.var = myResp,
+                                      expl.var = myExpl,
+                                      resp.xy = myRespXY,
+                                      resp.name = myRespName,
+                                      PA.nb.rep = 0,
+                                      PA.strategy = 'random',
+                                      PA.nb.absences = 1000)

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

> No pseudo absences selection !
      ! 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.
 ! Some NAs have been automatically removed from your data
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Done -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> myBiomodData

-=-=-=-=-=-=-=-=-=-=-=-=-=-= BIOMOD.formated.data -=-=-=-=-=-=-=-=-=-=-=-=-=-=

dir.name =  .

sp.name =  GuloGulo

	 22 presences,  49 true absences and  0 undefined points in dataset


	 5 explanatory variables

      bio3            bio4           bio7           bio11         
 Min.   :21.36   Min.   :4393   Min.   :168.9   Min.   :-132.389  
 1st Qu.:24.33   1st Qu.:6214   1st Qu.:247.9   1st Qu.: -61.092  
 Median :26.03   Median :7351   Median :283.4   Median : -26.944  
 Mean   :27.12   Mean   :7272   Mean   :282.9   Mean   : -33.647  
 3rd Qu.:30.10   3rd Qu.:8314   3rd Qu.:316.9   3rd Qu.:  -5.129  
 Max.   :39.17   Max.   :9895   Max.   :377.1   Max.   :  38.714  
     bio12       
 Min.   : 485.3  
 1st Qu.: 605.2  
 Median : 668.3  
 Mean   : 782.1  
 3rd Qu.: 816.5  
 Max.   :2243.9  

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> plot(myBiomodData)
Loading required namespace: tidyterra
Loading required namespace: ggtext
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'D:/RCompile/CRANpkg/lib/4.3/units/libs/x64/units.dll':
  LoadLibrary failure:  Die Auslagerungsdatei ist zu klein, um diesen Vorgang durchzuführen.
Calls: plot ... asNamespace -> loadNamespace -> library.dynam -> dyn.load -> inDL
Execution halted