Running 'testthat.R' [8s/11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RWmisc)
  > 
  > test_check("RWmisc")
  Reading layer `nc' from data source 
    `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sf/shape/nc.shp' 
    using driver `ESRI Shapefile'
  Simple feature collection with 100 features and 14 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  Geodetic CRS:  NAD27
  == Failed tests ================================================================
  -- Error (test-overlap.weight.R:21:3): overlap.weight works with SpatialPolygons --
  Error: raster and polygons do not share CRS
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-overlap.weight.R:21:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-RWmisc::overlap.weight(raster_t, as(polys_t, "Spatial"))
   5.   +-RWmisc:::poly.conv(polygons, raster)
   6.   \-RWmisc:::poly.conv.SpatialPolygons(polygons, raster)
  -- Error (test-overlap.weight.R:25:3): overlap.weight works with SpatialPolygonsDataFrame --
  Error: raster and polygons do not share CRS
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-overlap.weight.R:25:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-RWmisc::overlap.weight(...)
   5.   +-RWmisc:::poly.conv(polygons, raster)
   6.   \-RWmisc:::poly.conv.SpatialPolygonsDataFrame(polygons, raster)
  -- Failure (test-pointpolydist.R:18:3): point.poly.dist works with Spatial -----
  `point.poly.dist(as_Spatial(points_t), poly_t)` threw an error.
  Message: cannot transform sfc object with missing crs
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-pointpolydist.R:18:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-RWmisc::point.poly.dist(as_Spatial(points_t), poly_t)
   7.   +-sf::st_transform(point, st_crs(poly))
   8.   \-sf:::st_transform.sfc(point, st_crs(poly))
  -- Failure (test-pointpolydist.R:19:3): point.poly.dist works with Spatial -----
  `point.poly.dist(points_t, as_Spatial(poly_t))` threw an error.
  Message: crs not found: is it missing?
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-pointpolydist.R:19:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-RWmisc::point.poly.dist(points_t, as_Spatial(poly_t))
    7.   +-sf::st_transform(point, st_crs(poly))
    8.   \-sf:::st_transform.sfc(point, st_crs(poly))
    9.     +-sf::st_sfc(...)
   10.     +-base::structure(...)
   11.     \-sf:::CPL_transform(...)
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 23 ]
  Error: Test failures
  Execution halted