Running 'testthat.R' [85s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > ##load your dependencies
  > library(testthat)
  > library(SDraw)
  Loading required package: sp
  SDraw - Sample Draws (v 2.1.13)
  > library(sp)
  > library(rgeos)
  rgeos version: 0.5-5, (SVN revision 640)
   GEOS runtime version: 3.8.0-CAPI-1.13.1 
   Linking to sp version: 1.4-5 
   Polygon checking: TRUE 
  
  > 
  > ##test your package
  > test_check('SDraw')
  
  Stratum: None 
  Current number of levels: 3 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: None 
  Current number of levels: 3 
  Current number of levels: 4 
  Current number of levels: 5 
  Final number of levels: 5 
  
  Stratum: None 
  Current number of levels: 3 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 4 
  Current number of levels: 6 
  Current number of levels: 7 
  Current number of levels: 8 
  Current number of levels: 9 
  Final number of levels: 9 
  
  Stratum: None 
  Current number of levels: 2 
  Final number of levels: 2 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Final number of levels: 3 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 1 
  Final number of levels: 1 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Final number of levels: 3 
  == Failed tests ================================================================
  -- Error (test-grts.polygon.R:29:3): grts.polygon() operates appropriately -----
  Error: creation of server socket failed: port 11244 cannot be opened
  Backtrace:
      x
   1. +-testthat::expect_identical(...) test-grts.polygon.R:29:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-SDraw::grts.polygon(spatPoly, 1, 0)
   5.   \-SDraw:::grts.equi(x, n, over.n)
   6.     \-spsurvey::grts(...)
   7.       \-parallel::makeCluster(ncore, methods = FALSE)
   8.         \-parallel::makePSOCKcluster(names = spec, ...)
   9.           \-base::serverSocket(port = port)
  
  [ FAIL 1 | WARN 16 | SKIP 0 | PASS 70 ]
  Error: Test failures
  Execution halted