Running ‘testthat.R’ [89s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("inlabru")
  Loading required package: inlabru
  Loading required package: ggplot2
  Loading required package: sp
  Starting 2 test processes
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (31)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_ipoints.R:34:3): conversion of SpatialPolygon to integration points ──
  Error in `homogenise.segm.input(x, TRUE, crs = crs)`: Segment info matrix must be numeric or integer.
  Backtrace:
       █
    1. ├─testthat::expect_warning(ips <- ipoints(gorillas$boundary), "Computing integration points from polygon")
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─inlabru::ipoints(gorillas$boundary)
    8.   └─INLA::inla.mesh.2d(boundary = samplers, max.edge = max.edge)
    9.     └─INLA::inla.mesh.create(...)
   10.       ├─INLA:::system.time(...)
   11.       └─INLA:::inla.mesh.parse.segm.input(...)
   12.         └─base::lapply(...)
   13.           └─INLA:::FUN(X[[i]], ...)
   14.             └─INLA:::homogenise.segm.input(x, TRUE, crs = crs)
  ── Error (test_ipoints.R:48:3): conversion of SpatialPolygon to integration points when domain is defined via a mesh ──
  Error in `homogenise.segm.input(x, TRUE, crs = crs)`: Segment info matrix must be numeric or integer.
  Backtrace:
      █
   1. └─inlabru::ipoints(gorillas$boundary, gorillas$mesh)
   2.   └─inlabru::bru_int_polygon(...)
   3.     └─inlabru:::make_stable_integration_points(mesh, poly, ...)
   4.       └─INLA::inla.mesh.create(boundary = bnd)
   5.         ├─INLA:::system.time(...)
   6.         └─INLA:::inla.mesh.parse.segm.input(...)
   7.           └─base::lapply(...)
   8.             └─INLA:::FUN(X[[i]], ...)
   9.               └─INLA:::homogenise.segm.input(x, TRUE, crs = crs)
  ── Error (test_ipoints.R:137:3): Polygon integration with holes ────────────────
  Error in `homogenise.segm.input(x, TRUE, crs = crs)`: Segment info matrix must be numeric or integer.
  Backtrace:
      █
   1. └─INLA::inla.mesh.2d(loc.domain = bndA$loc, max.edge = 1)
   2.   └─INLA::inla.mesh.create(...)
   3.     ├─INLA:::system.time(...)
   4.     └─INLA:::inla.mesh.parse.segm.input(...)
   5.       └─base::lapply(...)
   6.         └─INLA:::FUN(X[[i]], ...)
   7.           └─INLA:::homogenise.segm.input(x, TRUE, crs = crs)
  ── Error (test_ipoints.R:175:3): Integration line splitting ────────────────────
  Error in `homogenise.segm.input(x, TRUE, crs = crs)`: Segment info matrix must be numeric or integer.
  Backtrace:
      █
   1. └─INLA::inla.mesh.2d(loc.domain = cbind(0, 0), offset = 2, max.edge = 0.5)
   2.   └─INLA::inla.mesh.create(...)
   3.     ├─INLA:::system.time(...)
   4.     └─INLA:::inla.mesh.parse.segm.input(...)
   5.       └─base::lapply(...)
   6.         └─INLA:::FUN(X[[i]], ...)
   7.           └─INLA:::homogenise.segm.input(x, TRUE, crs = crs)
  
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 48 ]
  Error: Test failures
  Execution halted