Running ‘test-all.R’ [27s/43s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(magrittr)
  > library(testthat)
  
  Attaching package: 'testthat'
  
  The following objects are masked from 'package:magrittr':
  
      equals, is_less_than, not
  
  > test_check("NetLogoR")
  Loading required package: NetLogoR
  Loading required package: raster
  Loading required package: sp
  
  Attaching package: 'raster'
  
  The following object is masked from 'package:magrittr':
  
      extract
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-agentset-functions.R:486:3): inRadius works ─────────────────────
  Error: more elements supplied than there are to replace
  Backtrace:
      █
   1. ├─NetLogoR::inRadius(...) test-agentset-functions.R:486:2
   2. └─NetLogoR::inRadius(...)
   3.   ├─sp::over(pBuffer, sp1, returnList = TRUE)
   4.   └─sp::over(pBuffer, sp1, returnList = TRUE)
   5.     └─sp:::pointsInSpatialPolygons(geometry(y), geometry(x), TRUE)
   6.       └─sp:::pointsInPolys2(...)
  ── Error (test-agentset-functions.R:603:3): inCone works ───────────────────────
  Error: more elements supplied than there are to replace
  Backtrace:
       █
    1. ├─NetLogoR::inCone(turtles = t1, radius = 1, angle = 5, agents = patches(w1)) test-agentset-functions.R:603:2
    2. └─NetLogoR::inCone(turtles = t1, radius = 1, angle = 5, agents = patches(w1))
    3.   ├─NetLogoR::inRadius(...)
    4.   └─NetLogoR::inRadius(...)
    5.     ├─NetLogoR::inRadius(...)
    6.     └─NetLogoR::inRadius(...)
    7.       ├─sp::over(pBuffer, sp1, returnList = TRUE)
    8.       └─sp::over(pBuffer, sp1, returnList = TRUE)
    9.         └─sp:::pointsInSpatialPolygons(geometry(y), geometry(x), TRUE)
   10.           └─sp:::pointsInPolys2(...)
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 1096 ]
  Error: Test failures
  Execution halted