Running ‘testthat.R’ [191s/221s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eRTG3D)
  > 
  > test_check("eRTG3D")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-point-cloud-analysis.R:22:3): point-cloud-analysis works ────────
  Error in `(function (classes, fdef, mtable) 
  {
      methods <- .findInheritedMethods(classes, fdef, mtable)
      if (length(methods) == 1L) 
          return(methods[[1L]])
      else if (length(methods) == 0L) {
          cnames <- paste0("\"", vapply(classes, as.character, 
              ""), "\"", collapse = ", ")
          stop(gettextf("unable to find an inherited method for function %s for signature %s", 
              sQuote(fdef@generic), sQuote(cnames)), domain = NA)
      }
      else stop("Internal error in finding inherited methods; didn't return a unique method", 
          domain = NA)
  })(list(structure("Extent", package = "raster")), new("standardGeneric", 
      .Data = function (x) 
      standardGeneric("xmin"), generic = structure("xmin", package = "terra"), 
      package = "terra", group = list(), valueClass = character(0), 
      signature = "x", default = NULL, skeleton = (function (x) 
      stop("invalid call in method dispatch to 'xmin' (no default method)", 
          domain = NA))(x)), <environment>)`: unable to find an inherited method for function 'xmin' for signature '"Extent"'
  Backtrace:
       █
    1. ├─testthat::expect_is(...) test-point-cloud-analysis.R:22:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─eRTG3D::plotRaster(chi, centerColorBar = TRUE)
    5.   ├─rasterVis::levelplot(...)
    6.   └─rasterVis::levelplot(...)
    7.     └─rasterVis:::.local(x, data = data, ...)
    8.       └─rasterVis:::.levelplot(...)
    9.         └─terra::xmin(bb)
   10.           └─(function (classes, fdef, mtable) ...
  
  [ FAIL 1 | WARN 81 | SKIP 0 | PASS 101 ]
  Error: Test failures
  Execution halted