Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(GLCMTextures)
  Loading required package: terra
  terra 1.8.86
  
  Attaching package: 'terra'
  
  The following objects are masked from 'package:testthat':
  
      compare, describe
  
  > 
  > test_check("GLCMTextures")
  Saving _problems/test-glcm_textures-45.R
  Saving _problems/test-glcm_textures-54.R
  Saving _problems/test-glcm_textures-63.R
  Saving _problems/test-glcm_textures-75.R
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 8 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-glcm_textures.R:45:3'): glcm_textures ep works ─────────────────
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test-glcm_textures.R:45:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x, ...)
   4.     ├─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   5.     └─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   6.       └─terra (local) .local(x = x, ...)
   7.         └─terra:::new_rast(...)
   8.           └─terra:::messages(r, "rast")
   9.             └─terra:::error(f, x@pntr$getError())
  ── Error ('test-glcm_textures.R:54:3'): glcm_textures er works ─────────────────
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test-glcm_textures.R:54:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x, ...)
   4.     ├─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   5.     └─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   6.       └─terra (local) .local(x = x, ...)
   7.         └─terra:::new_rast(...)
   8.           └─terra:::messages(r, "rast")
   9.             └─terra:::error(f, x@pntr$getError())
  ── Error ('test-glcm_textures.R:63:3'): glcm_textures NA handling and ordering of metrics works ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test-glcm_textures.R:63:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x, ...)
   4.     ├─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   5.     └─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   6.       └─terra (local) .local(x = x, ...)
   7.         └─terra:::new_rast(...)
   8.           └─terra:::messages(r, "rast")
   9.             └─terra:::error(f, x@pntr$getError())
  ── Error ('test-glcm_textures.R:75:3'): glcm_textures NA handling and ordering of metrics works ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test-glcm_textures.R:75:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x, ...)
   4.     ├─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   5.     └─terra::rast(nrows = nrow(x), ncols = ncol(x), crs = crs, extent = extent)
   6.       └─terra (local) .local(x = x, ...)
   7.         └─terra:::new_rast(...)
   8.           └─terra:::messages(r, "rast")
   9.             └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 8 ]
  Error:
  ! Test failures.
  Execution halted