Running 'test-all.R' [76s/107s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library(testthat)
  > test_check("grainscape")
  Loading required package: grainscape
  IGRAPH ceb1a3d UN-- 43 89 -- 
  + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea
  | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId
  | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n),
  | endPerimX (e/n), endPerimY (e/n)
  + edges from ceb1a3d (vertex names):
   [1] 62 --74  30 --41  30 --40  7  --22  5  --7   80 --86  73 --78  29 --31 
   [9] 19 --29  67 --85  41 --48  40 --41  37 --41  8  --28  9  --12  12 --14 
  [17] 30 --48  8  --9   48 --54  95 --103 62 --64  5  --22  32 --37  74 --84 
  [25] 55 --56  5  --32  9  --28  68 --80  14 --19  30 --54  5  --37  54 --55 
  [33] 64 --74  86 --100 100--107 41 --50  56 --76  56 --61  103--105 9  --14 
  + ... omitted several edges
  == Warnings ====================================================================
  -- Warning (???): /tmp/Rtmpcvurjr/R.INSTALL35f25fcf500b/grainscape/man/export.Rd --
  NOT UPDATED FOR PROJ >= 6
  Backtrace:
    1. grainscape::export(...)
    2. grainscape::export(...)
    3. grainscape:::.wRas(...)
    5. raster::writeRaster(...)
    6. raster:::.local(x, filename, ...)
    7. raster:::.writeGDALall(...)
    8. raster:::.startGDALwriting(...)
    9. raster:::.getGDALtransient(...)
   10. rgdal::GDALcall(transient, "SetProject", prj)
   11. rgdal:::.gd_SetProject(object, ...)
  
  == Failed tests ================================================================
  -- Error (test-corridor-distance-point.R:53:3): distance handles NA values -----
  Error: replacement has length zero
  Backtrace:
       x
    1. +-testthat::expect_warning(distanceAllNA <- distance(goc, coordAllNA)) test-corridor-distance-point.R:53:2
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-grainscape::distance(goc, coordAllNA)
    7. \-grainscape::distance(goc, coordAllNA)
    8.   \-grainscape:::.local(x, y, ...)
    9.     +-grainscape::distance(x, SpatialPoints(y), weight, ...)
   10.     \-grainscape::distance(x, SpatialPoints(y), weight, ...)
   11.       \-grainscape:::.local(x, y, ...)
   12.         +-grainscape::point(x, y)
   13.         \-grainscape::point(x, y)
   14.           \-grainscape:::.local(x, ...)
  -- Error (test-corridor-distance-point.R:105:3): point handles NA values -------
  Error: replacement has length zero
  Backtrace:
      x
   1. +-testthat::expect_warning(pntAllNA <- point(goc, coordAllNA)) test-corridor-distance-point.R:105:2
   2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. +-grainscape::point(goc, coordAllNA)
   7. \-grainscape::point(goc, coordAllNA)
   8.   \-grainscape:::.local(x, ...)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 80 ]
  Error: Test failures
  Execution halted