Running 'testthat.R' [137s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(raptr)
  Loading required package: sp
  Loading required package: raster
  The gorubi software is not installed
  Follow these instructions to download the Gurobi software suite:
     http://bit.ly/1MrjXWc
  
  The Gurobi R package requires a Gurobi license to work:
    visit this web-page for an overview: http://bit.ly/1OHEQCm
    academics can obtain a license at no cost here: http://bit.ly/1iYg3LX
  
  Follow these instructions to install the "gurobi" R package:
     http://bit.ly/1MMSZaH
  
  Follow these instructions to install the "rgurobi" R package from GitHub:
    http://bit.ly/1RF19XO
  
  
  Type the code "is.GurobiInstalled()" to check if Gurobi is
  succesfully installed after following these instructions.
  > test_check("raptr")
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  Requested probability quantile 0.950000, obtained 0.948661 - setting threshold value 0.002050.
   For a closer match, you can increase num.thresholds in hypervolume_threshold.
  .....
  -- 1. Error: demand.points (ks, geographic space) (@test-07-DemandPoints.R#19)  
  cannot sample in zero-area polygons
  1: make.DemandPoints(points = pts, n = 100L, kernel.method = "ks") at testthat/test-07-DemandPoints.R:19
  2: demand.points.density2d(points, n = n, quantile = quantile, ...)
  3: sp::spsample(adehabitatHR::mcp(sp::SpatialPoints(coords = pts), percent = quantile * 
         100, unin = c("m"), unout = c("m2")), n * 1.1, type = "random")
  4: sp::spsample(adehabitatHR::mcp(sp::SpatialPoints(coords = pts), percent = quantile * 
         100, unin = c("m"), unout = c("m2")), n * 1.1, type = "random")
  5: .local(x, n, type, ...)
  6: stop("cannot sample in zero-area polygons")
  
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  Requested probability quantile 0.500000, obtained 0.499839 - setting threshold value 0.083582.
   For a closer match, you can increase num.thresholds in hypervolume_threshold.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  
  Building tree... 
  done.
  Ball query... 
  
  done.
  Requested probability quantile 0.500000, obtained 0.499813 - setting threshold value 0.086420.
   For a closer match, you can increase num.thresholds in hypervolume_threshold.
  == testthat results  ===========================================================
  OK: 312 SKIPPED: 20 FAILED: 1
  1. Error: demand.points (ks, geographic space) (@test-07-DemandPoints.R#19) 
  
  Error: testthat unit tests failed
  Execution halted