Running ‘testthat.R’ [45s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dynamicSDM)
  > 
  > test_check("dynamicSDM")
  weights.col not specified. All records equally weighted.
  interaction.depth not set. Optimisation taking place.
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  No sdm.thresh. Default 0.5
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  Using 1 trees...
  
  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 2 | WARN 7 | SKIP 3 | PASS 211 ]
  
  ══ 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:166:3'): Success if projection.method = all ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'matrixStats'
  Backtrace:
      ▆
   1. ├─dynamicSDM::dynamic_proj(...) at test-dynamic_proj.R:166:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test-dynamic_proj.R:234:3'): Success if projection.method = tif and just sdm ──
  file.exists(paste0(save.directory, "/", filenames[1])) (`actual`) not equal to TRUE (`expected`).
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 2 | WARN 7 | SKIP 3 | PASS 211 ]
  Error: Test failures
  Execution halted