Running 'testthat.R' [4s/4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(geohashTools)
  > 
  > test_check("geohashTools")
  == Warnings ====================================================================
  -- Warning (test-gis-tools.R:121:3): gh_covering works -------------------------
  NULL source CRS comment, falling back to PROJ string
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:121:2
   3. sp::spTransform(gh_to_spdf(gh), prj4)
   5. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:121:3): gh_covering works -------------------------
  NULL target CRS comment, falling back to PROJ string
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:121:2
   3. sp::spTransform(gh_to_spdf(gh), prj4)
   5. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:121:3): gh_covering works -------------------------
  CRS object has no comment
  Backtrace:
    1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:121:2
    3. sp::spTransform(gh_to_spdf(gh), prj4)
    5. rgdal:::spTransform(xSP, CRSobj, ...)
    6. rgdal:::get_aoi(x)
    8. sp::is.projected(obj)
   10. sp::is.projected(p4str)
   11. rgdal::OSRIsProjected(obj)
   13. sp::wkt(obj)
  -- Warning (test-gis-tools.R:160:3): gh_covering_sf works ----------------------
  NULL source CRS comment, falling back to PROJ string
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:160:2
   3. sp::spTransform(gh_to_spdf(gh), prj4)
   5. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:160:3): gh_covering_sf works ----------------------
  NULL target CRS comment, falling back to PROJ string
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:160:2
   3. sp::spTransform(gh_to_spdf(gh), prj4)
   5. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:160:3): gh_covering_sf works ----------------------
  CRS object has no comment
  Backtrace:
    1. geohashTools::gh_covering(banjarmasin) test-gis-tools.R:160:2
    3. sp::spTransform(gh_to_spdf(gh), prj4)
    5. rgdal:::spTransform(xSP, CRSobj, ...)
    6. rgdal:::get_aoi(x)
    8. sp::is.projected(obj)
   10. sp::is.projected(p4str)
   11. rgdal::OSRIsProjected(obj)
   13. sp::wkt(obj)
  -- Warning (test-gis-tools.R:172:3): gh_covering_sf works ----------------------
  CRS object has comment, which is lost in output
  Backtrace:
   1. testthat::expect_equal(nrow(gh_covering(banjarmasin, 5L)), 9L) test-gis-tools.R:172:2
   5. geohashTools::gh_covering(banjarmasin, 5L)
   7. sp::proj4string(SP)
  -- Warning (test-gis-tools.R:172:3): gh_covering_sf works ----------------------
  NULL source CRS comment, falling back to PROJ string
  Backtrace:
    1. testthat::expect_equal(nrow(gh_covering(banjarmasin, 5L)), 9L) test-gis-tools.R:172:2
    5. geohashTools::gh_covering(banjarmasin, 5L)
    7. sp::spTransform(gh_to_spdf(gh), prj4)
    9. rgdal:::spTransform(x, CRS(CRSobj), ...)
   11. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:172:3): gh_covering_sf works ----------------------
  CRS object has no comment
  Backtrace:
    1. testthat::expect_equal(nrow(gh_covering(banjarmasin, 5L)), 9L) test-gis-tools.R:172:2
    5. geohashTools::gh_covering(banjarmasin, 5L)
    7. sp::spTransform(gh_to_spdf(gh), prj4)
    9. rgdal:::spTransform(x, CRS(CRSobj), ...)
   11. rgdal:::spTransform(xSP, CRSobj, ...)
   12. rgdal:::get_aoi(x)
   14. sp::is.projected(obj)
   16. sp::is.projected(p4str)
   17. rgdal::OSRIsProjected(obj)
   19. sp::wkt(obj)
  -- Warning (test-gis-tools.R:173:3): gh_covering_sf works ----------------------
  CRS object has comment, which is lost in output
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin, minimal = TRUE) test-gis-tools.R:173:2
   3. sp::proj4string(SP)
  -- Warning (test-gis-tools.R:173:3): gh_covering_sf works ----------------------
  NULL source CRS comment, falling back to PROJ string
  Backtrace:
   1. geohashTools::gh_covering(banjarmasin, minimal = TRUE) test-gis-tools.R:173:2
   3. sp::spTransform(gh_to_spdf(gh), prj4)
   5. rgdal:::spTransform(x, CRS(CRSobj), ...)
   7. rgdal:::spTransform(xSP, CRSobj, ...)
  -- Warning (test-gis-tools.R:173:3): gh_covering_sf works ----------------------
  CRS object has no comment
  Backtrace:
    1. geohashTools::gh_covering(banjarmasin, minimal = TRUE) test-gis-tools.R:173:2
    3. sp::spTransform(gh_to_spdf(gh), prj4)
    5. rgdal:::spTransform(x, CRS(CRSobj), ...)
    7. rgdal:::spTransform(xSP, CRSobj, ...)
    8. rgdal:::get_aoi(x)
   10. sp::is.projected(obj)
   12. sp::is.projected(p4str)
   13. rgdal::OSRIsProjected(obj)
   15. sp::wkt(obj)
  
  == Failed tests ================================================================
  -- Error (test-gis-tools.R:125:3): gh_covering works ---------------------------
  Error: nr == length(x) is not TRUE
  Backtrace:
       x
    1. +-testthat::expect_true(!any(is.na(sp::over(banjarmasin, banjarmasin_cover)))) test-gis-tools.R:125:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-sp::over(banjarmasin, banjarmasin_cover)
    5. \-sp::over(banjarmasin, banjarmasin_cover)
    6.   \-sp:::.local(x, y, returnList, fn, ...)
    7.     +-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
    8.     \-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
    9.       \-sp:::.invert(r, length(y), length(x))
   10.         \-base::stopifnot(nr == length(x))
  -- Error (test-gis-tools.R:173:3): gh_covering_sf works ------------------------
  Error: 'names' attribute [112] must be the same length as the vector [97]
  Backtrace:
      x
   1. \-geohashTools::gh_covering(banjarmasin, minimal = TRUE) test-gis-tools.R:173:2
   2.   +-cover[!drop(is.na(sp::over(cover, SP))), ]
   3.   +-cover[!drop(is.na(sp::over(cover, SP))), ]
   4.   +-base::drop(is.na(sp::over(cover, SP)))
   5.   +-sp::over(cover, SP)
   6.   \-sp::over(cover, SP)
   7.     \-sp:::.local(x, y, returnList, fn, ...)
   8.       +-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
   9.       \-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
  
  [ FAIL 2 | WARN 12 | SKIP 0 | PASS 104 ]
  Error: Test failures
  Execution halted