Running 'testthat.R' [7s/9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BIRDS)
  > 
  > test_check("BIRDS")
  == Warnings ====================================================================
  -- Warning (test-export.R:5:1): (code run outside of `test_that()`) ------------
  Discarded ellps WGS 84 in CRS definition: +proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs
  Backtrace:
    1. BIRDS::summariseBirds(...) test-export.R:5:0
    3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
    5. sp::CRS("+init=epsg:3857")
    6. rgdal::checkCRSArgs_ng(...)
   12. rgdal::showSRID(...)
  -- Warning (test-export.R:5:1): (code run outside of `test_that()`) ------------
  Discarded datum WGS_1984 in CRS definition
  Backtrace:
    1. BIRDS::summariseBirds(...) test-export.R:5:0
    3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
    5. sp::CRS("+init=epsg:3857")
    6. rgdal::checkCRSArgs_ng(...)
   12. rgdal::showSRID(...)
  -- Warning (test-export.R:5:1): (code run outside of `test_that()`) ------------
  NULL source CRS comment, falling back to PROJ string
  Backtrace:
   1. BIRDS::summariseBirds(...) test-export.R:5:0
   3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
   5. rgdal:::spTransform(polygon, CRSobj = CRS("+init=epsg:3857"))
  -- Warning (test-export.R:5:1): (code run outside of `test_that()`) ------------
  +init dropped in PROJ string
  Backtrace:
   1. BIRDS::summariseBirds(...) test-export.R:5:0
   3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
   5. rgdal:::spTransform(polygon, CRSobj = CRS("+init=epsg:3857"))
  -- Warning (test-export.R:5:1): (code run outside of `test_that()`) ------------
  CRS object has no comment
  Backtrace:
    1. BIRDS::summariseBirds(...) test-export.R:5:0
    3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
    5. rgdal:::spTransform(polygon, CRSobj = CRS("+init=epsg:3857"))
    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-export.R:5:1): (code run outside of `test_that()`) ------------
  CRS object has comment, which is lost in output
  Backtrace:
    1. BIRDS::summariseBirds(...) test-export.R:5:0
    3. BIRDS::makeGrid(gotaland, 50, buffer = TRUE, simplify = TRUE)
    5. sp::spsample(...)
    6. sp:::.local(x, n, type, ...)
    8. sp::`proj4string<-`(`*tmp*`, value = new("CRS", projargs = "+proj=longlat +datum=WGS84 +no_defs"))
   10. sp::proj4string(obj)
  
  == Failed tests ================================================================
  -- Error (test-export.R:5:1): (code run outside of `test_that()`) --------------
  Error: replacement has length zero
  Backtrace:
       x
    1. +-BIRDS::summariseBirds(...) test-export.R:5:0
    2. \-BIRDS:::summarizeBirds.OrganizedBirds(...)
    3.   +-BIRDS::overlayBirds(x, grid = grid, spillOver = spillOver)
    4.   \-BIRDS:::overlayBirds.OrganizedBirds(x, grid = grid, spillOver = spillOver)
    5.     +-sp::over(grid, spBird, returnList = TRUE)
    6.     \-sp::over(grid, spBird, returnList = TRUE)
    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)
   10.           \-sp:::pointsInSpatialPolygons(geometry(y), geometry(x), TRUE)
   11.             \-sp:::pointsInPolys2(...)
  
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted