Running ‘testthat.R’ [42s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spbabel)
  > 
  > test_check("spbabel")
  ── 1. Error: we can ingest a line object from rasterToContour (@test-map_table.R
  there is no package called 'raster'
  1: raster::raster at testthat/test-map_table.R:31
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: (unknown) (@test-sf.R#3)  ─────────────────────────────────────────
  there is no package called 'sf'
  1: library(sf) at testthat/test-sf.R:3
  2: stop(txt, domain = NA)
  
  ── 3. Error: (unknown) (@test-sfFromTable.R#3)  ────────────────────────────────
  there is no package called 'sf'
  1: library(sf) at testthat/test-sfFromTable.R:3
  2: stop(txt, domain = NA)
  
  ── 4. Error: (unknown) (@test-spFromTable.R#74)  ───────────────────────────────
  there is no package called 'raster'
  1: suppressPackageStartupMessages(library(raster)) at testthat/test-spFromTable.R:74
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(raster)
  4: stop(txt, domain = NA)
  
  ── 5. Error: (unknown) (@test-trip.R#1)  ───────────────────────────────────────
  there is no package called 'trip'
  1: library(trip) at testthat/test-trip.R:1
  2: stop(txt, domain = NA)
  
  ── 6. Error: (unknown) (@test-utils.R#9)  ──────────────────────────────────────
  there is no package called 'raster'
  1: raster::setValues at testthat/test-utils.R:9
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 46 SKIPPED: 1 FAILED: 6
  1. Error: we can ingest a line object from rasterToContour (@test-map_table.R#31) 
  2. Error: (unknown) (@test-sf.R#3) 
  3. Error: (unknown) (@test-sfFromTable.R#3) 
  4. Error: (unknown) (@test-spFromTable.R#74) 
  5. Error: (unknown) (@test-trip.R#1) 
  6. Error: (unknown) (@test-utils.R#9) 
  
  Error: testthat unit tests failed
  Execution halted