Running ‘testthat.R’ [19s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spacejamr)
  > 
  > test_check("spacejamr")
      Density Mean Degree Mean Closeness Mean Betweenness Largest Component Size
  pl        0           0            NaN                0                      1
  apl       0           0            NaN                0                      1
      Density Mean Degree Mean Closeness Mean Betweenness Largest Component Size
  pl        0           0            NaN                0                      1
  apl       0           0            NaN                0                      1
  window: polygonal boundary
  enclosing rectangle: [257656.9, 323005.8] x [4558224, 4654702] units
  PointSim Object
  
  window: polygonal boundary
  enclosing rectangle: [257656.9, 323005.8] x [4558224, 4654702] units
  
  Points:3IGRAPH e454acb UN-- 3 0 -- 
  + attr: name (v/c)
  + edges from e454acb (vertex names):
  IGRAPH e454acb UN-- 3 0 -- 
  + attr: name (v/c)
  + edges from e454acb (vertex names):
  Using the projected CRS WGS 84 / UTM zone 19N which uses 'm' for measurement units. Please visit https://spatialreference.org/ref/epsg/32619/ for more information about this CRS.
  Error in if (!inherits(spst_ver, "try-error") && spst_ver < 2 - 0) stop("You have an old version of spatstat installed which is incompatible with ",  : 
    missing value where TRUE/FALSE needed
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 20 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generics.R:11'): we can plot objects created with the spacejamr package ──
  Error in `if (!inherits(spst_ver, "try-error") && spst_ver < 2 - 0) stop("You have an old version of spatstat installed which is incompatible with ", 
      pkg, ". Please update spatstat (or uninstall it).")`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_identical(class(plot(RI)), c("gg", "ggplot")) at test-generics.R:11:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::plot(RI)
    5. └─spacejamr:::plot.spacejamr(RI)
    6.   ├─sf::st_as_sf(x[[1]])
    7.   └─sf:::st_as_sf.owin(x[[1]])
    8.     ├─sf::st_sf(geom = st_as_sfc(x, ...))
    9.     ├─sf::st_as_sfc(x, ...)
   10.     └─sf:::st_as_sfc.owin(x, ...)
   11.       └─sf:::check_spatstat("spatstat.geom")
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted