Running 'testthat.R' [69s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(SSDM)
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  Welcome to the SSDM package, you can launch the graphical user interface by typing gui() in the console.
  > 
  > test_check("SSDM")
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in .doExtract(x, i, drop = drop) : 
    no data associated with this Raster object
  Error in .doExtract(x, i, drop = drop) : 
    no data associated with this Raster object
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in .doExtract(x, i, drop = drop) : 
    no data associated with this Raster object
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in crossprod(y.scale$"scaled:scale") : 
    "crossprod" is not a BUILTIN function
  Error in .doExtract(x, i, drop = drop) : 
    no data associated with this Raster object
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 52 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ensemble.R:7:3'): ensemble function ────────────────────────────
  Error in `crossprod(y.scale$"scaled:scale")`: "crossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─SSDM::modelling(...) at test_ensemble.R:7:2
    2.   ├─SSDM::evaluate(model, cv, cv.param, thresh, metric, Env, ...)
    3.   └─SSDM::evaluate(model, cv, cv.param, thresh, metric, Env, ...)
    4.     └─SSDM (local) .local(obj, ...)
    5.       ├─SSDM:::get_model(trainobj, ...)
    6.       └─SSDM:::get_model(trainobj, ...)
    7.         └─SSDM (local) .local(obj, ...)
    8.           ├─e1071::svm(...)
    9.           └─e1071:::svm.formula(...)
   10.             └─e1071:::svm.default(x, y, scale = scale, ..., na.action = na.action)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 52 ]
  Error: Test failures
  Execution halted