Running ‘test-all.R’ [42s/49s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("SpaDES.tools")
  Loading required package: SpaDES.tools
  Failed with error:  'there is no package called 'RandomFields''
  ── 1. Error: spread stopRule does not work correctly (@test-spread.R#74)  ──────
  The 'RandomFields' package is required but not installed.
  1: gaussMap(a, speedup = 1) at testthat/test-spread.R:74
  2: stop("The 'RandomFields' package is required but not installed.")
  
  Failed with error:  'there is no package called 'RandomFields''
  ── 2. Error: asymmetry doesn't work properly (@test-spread.R#321)  ─────────────
  The 'RandomFields' package is required but not installed.
  1: gaussMap(a, speedup = 1) at testthat/test-spread.R:321
  2: stop("The 'RandomFields' package is required but not installed.")
  
  Failed with error:  'there is no package called 'RandomFields''
  ── 3. Error: rings and cir (@test-spread.R#571)  ───────────────────────────────
  The 'RandomFields' package is required but not installed.
  1: gaussMap(a, speedup = 1) at testthat/test-spread.R:571
  2: stop("The 'RandomFields' package is required but not installed.")
  
  Failed with error:  'there is no package called 'RandomFields''
  ── 4. Error: distanceFromPoints does not work correctly (@test-spread.R#711)  ──
  The 'RandomFields' package is required but not installed.
  1: gaussMap(hab, speedup = 1) at testthat/test-spread.R:711
  2: stop("The 'RandomFields' package is required but not installed.")
  
  Failed with error:  'there is no package called 'RandomFields''
  ── 5. Error: spread2 tests (@test-spread2.R#14)  ───────────────────────────────
  The 'RandomFields' package is required but not installed.
  1: gaussMap(b) at testthat/test-spread2.R:14
  2: stop("The 'RandomFields' package is required but not installed.")
  
  Failed with error:  'there is no package called 'RandomFields''
  ── 6. Error: spread2 tests -- asymmetry (@test-spread2.R#625)  ─────────────────
  The 'RandomFields' package is required but not installed.
  1: gaussMap(a, speedup = 1) at testthat/test-spread2.R:625
  2: stop("The 'RandomFields' package is required but not installed.")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 688 SKIPPED: 8 FAILED: 6
  1. Error: spread stopRule does not work correctly (@test-spread.R#74) 
  2. Error: asymmetry doesn't work properly (@test-spread.R#321) 
  3. Error: rings and cir (@test-spread.R#571) 
  4. Error: distanceFromPoints does not work correctly (@test-spread.R#711) 
  5. Error: spread2 tests (@test-spread2.R#14) 
  6. Error: spread2 tests -- asymmetry (@test-spread2.R#625) 
  
  Error: testthat unit tests failed
  Execution halted