Running examples in ‘SDMPlay-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: SDMeval
> ### Title: Evaluate species distribution models
> ### Aliases: SDMeval
> 
> ### ** Examples
> 
> #Generate a SDMtab and launch a model
> data('ctenocidaris.nutrix')
> occ <- ctenocidaris.nutrix
> occ <- ctenocidaris.nutrix[,c('decimal.Longitude','decimal.Latitude')]
> 
> data(predictors2005_2012)
> envi <- predictors2005_2012
> envi
class      : RasterStack 
dimensions : 100, 179, 17900, 15  (nrow, ncol, ncell, nlayers)
resolution : 0.1, 0.1  (x, y)
extent     : 63, 80.9, -56, -46  (xmin, xmax, ymin, ymax)
crs        : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 
names      :         depth, seasurfac//_2005_2012, seasurfac//_2005_2012, seafloor_//_2005_2012, seafloor_//_2005_2012, seasurfac//_2005_2012, seasurfac//_2005_2012, seafloor_//_2005_2012, seafloor_//_2005_2012, chlorophy//_2005_2012, geomorphology,     sediments,         slope, seafloor_//_2005_2012,     roughness 
min values : -4.977000e+03,          3.263100e-01,         -4.002820e+00,         -2.985100e-01,         -3.097540e+00,          3.362941e+01,         -6.510162e-02,          3.364861e+01,         -1.297913e-01,          1.358515e-01,  1.000000e+00,  2.000000e+00,  4.822916e-05,          4.008017e+00,  7.000000e+00 
max values :    -1.0000000,             9.0129099,            -1.2873000,             4.8823700,             0.9008052,            33.9671898,             0.1001129,            34.8030014,             0.1012001,             2.7323778,    19.0000000,    13.0000000,     0.1546878,             7.6222906,  3417.0000000 

> 
> SDMtable_ctenocidaris <- SDMPlay:::SDMtab(xydata=occ,
+                                          predictors=predictors2005_2012,
+                                          unique.data=FALSE,
+                                          same=TRUE)
> model <- SDMPlay:::compute.brt(x=SDMtable_ctenocidaris, proj.predictors=envi,lr=0.005)
Loading required namespace: gbm
Failed with error:  ‘there is no package called ‘gbm’’
Error in dismo::gbm.step(data = x, gbm.x = 4:ncol(x), gbm.y = 1, tree.complexity = tc,  : 
  you need to install the gbm package to run this function
Calls: <Anonymous> -> <Anonymous>
Execution halted