Running 'testthat.R' [92s/172s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RStoolbox) 
  > 
  > 
  > Sys.setenv("R_TESTS" = "") ## needed to pass R CMD check: https://github.com/hadley/testthat/issues/144
  > 
  > test_check("RStoolbox")
  == Skipped tests ===============================================================
  * On CRAN (9)
  
  == Warnings ====================================================================
  -- Warning (test-getValidation.R:8:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
   1. RStoolbox::superClass(...) test-getValidation.R:8:0
   2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
   4. sp::is.projected(x)
   6. sp::is.projected(p4str)
   7. rgdal::OSRIsProjected(obj)
   9. sp::wkt(obj)
  -- Warning (test-getValidation.R:8:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-getValidation.R:8:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  -- Warning (test-getValidation.R:8:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-getValidation.R:8:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  -- Warning (test-getValidation.R:9:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
   1. RStoolbox::superClass(...) test-getValidation.R:9:0
   2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
   4. sp::is.projected(x)
   6. sp::is.projected(p4str)
   7. rgdal::OSRIsProjected(obj)
   9. sp::wkt(obj)
  -- Warning (test-getValidation.R:9:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-getValidation.R:9:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  -- Warning (test-getValidation.R:9:1): (code run outside of `test_that()`) -----
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-getValidation.R:9:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  -- Warning (test-superClass.R:15:1): (code run outside of `test_that()`) -------
  CRS object has comment, which is lost in output
  Backtrace:
   1. sp::spsample(poly, n = 100, type = "random") test-superClass.R:15:0
   2. sp::spsample(poly, n = 100, type = "random")
   3. sp:::.local(x, n, type, ...)
   5. sp::`proj4string<-`(`*tmp*`, value = new("CRS", projargs = "+proj=utm +zone=22 +datum=WGS84 +units=m +no_defs"))
   7. sp::proj4string(obj)
  -- Warning (test-validateMap.R:10:1): (code run outside of `test_that()`) ------
  CRS object has no comment
  Backtrace:
   1. RStoolbox::superClass(...) test-validateMap.R:10:0
   2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
   4. sp::is.projected(x)
   6. sp::is.projected(p4str)
   7. rgdal::OSRIsProjected(obj)
   9. sp::wkt(obj)
  -- Warning (test-validateMap.R:10:1): (code run outside of `test_that()`) ------
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-validateMap.R:10:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  -- Warning (test-validateMap.R:10:1): (code run outside of `test_that()`) ------
  CRS object has no comment
  Backtrace:
    1. RStoolbox::superClass(...) test-validateMap.R:10:0
    2. RStoolbox:::.omniBuffer(trainData, minDist = minDist, img = img)
    3. rgeos::gBuffer(x, width = minDist * max(res(img)))
    5. sp::is.projected(spgeom)
    7. sp::is.projected(p4str)
    8. rgdal::OSRIsProjected(obj)
   10. sp::wkt(obj)
  
  == Failed tests ================================================================
  -- Error (test-superClass.R:16:1): (code run outside of `test_that()`) ---------
  Error: more elements supplied than there are to replace
  Backtrace:
      x
   1. +-sp::SpatialPointsDataFrame(pts, data = over(pts, poly)) test-superClass.R:16:0
   2. | \-base::row.names(data)
   3. +-sp::over(pts, poly)
   4. \-sp::over(pts, poly)
   5.   \-sp:::.local(x, y, returnList, fn, ...)
   6.     +-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
   7.     \-sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
   8.       \-sp:::pointsInSpatialPolygons(x, y, returnList)
   9.         \-sp:::pointsInPolys2(...)
  
  [ FAIL 1 | WARN 10 | SKIP 9 | PASS 512 ]
  Error: Test failures
  Execution halted