Running ‘testthat.R’ [68s/97s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dynamicSDM)
  > 
  > test_check("dynamicSDM")
  spatial.layer is missing. No blocking by spatial features.
  spatial.layer is missing. No blocking by spatial features.
  temporal.block is missing. No blocking by temporal features.
  omitting any duplicate records
  omitting any species records with coordinates containing NA
  omitting any species records with dates containing NA
  any records with invalid dates excluded
  any records with invalid co-ordinates excluded
  any records with invalid co-ordinates excluded
  omitting any species records with coordinates containing NA
  omitting any species records with dates containing NA
  omitting any duplicate records
  any records with invalid co-ordinates excluded
  any records with invalid dates excluded
  omitting any species records with coordinates containing NA
  omitting any species records with dates containing NA
  omitting any duplicate records
  any records with invalid co-ordinates excluded
  any records with invalid dates excluded
  spatial.ext could not be used as a mask.
  spatial.ext could not be used as a mask.
  [ FAIL 1 | WARN 7 | SKIP 3 | PASS 198 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-spatiotemp_check.R:184:3',
    'test-spatiotemp_check.R:202:3', 'test-spatiotemp_check.R:220:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dynamic_proj.R:11:1'): (code run outside of `test_that()`) ─────
  Error in `gbm.fit(x = x, y = y, offset = offset, distribution = distribution, 
      w = w, var.monotone = var.monotone, n.trees = n.trees, interaction.depth = interaction.depth, 
      n.minobsinnode = n.minobsinnode, shrinkage = shrinkage, bag.fraction = bag.fraction, 
      nTrain = nTrain, keep.data = keep.data, verbose = lVerbose, 
      var.names = var.names, response.name = response.name, group = group)`: Bernoulli requires the response to be numeric in {0,1}
  Backtrace:
      ▆
   1. └─dynamicSDM::brt_fit(...) at test-dynamic_proj.R:11:1
   2.   └─gbm::gbm(...)
   3.     └─gbm::gbm.fit(...)
  
  [ FAIL 1 | WARN 7 | SKIP 3 | PASS 198 ]
  Error: Test failures
  Execution halted