Running ‘test-all.R’ [3s/5s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check('glcm')
  Loading required package: glcm
  ── 1. Error: glcm on 3x3 window with 1x1 shift works (@test-glcm.R#21)  ────────
  no arguments in initialization list
  1: expect_equal(get_pkg_glcm_texture("mean_ENVI", c(3, 3), c(1, 1)), expected = getValues(expected_textures_3x3_1x1$mean_ENVI), 
         tolerance = 1e-06) at testthat/test-glcm.R:21
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_pkg_glcm_texture("mean_ENVI", c(3, 3), c(1, 1))
  5: glcm(test_raster, 32, window, shift, statistic, na_val = 0) at testthat/test-glcm.R:14
  6: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  7: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  8: .local(x, ...)
  9: raster(x)
  10: raster(x)
  11: .local(x, ...)
  12: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  13: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  14: .local(x, ...)
  15: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  16: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  17: .local(...)
  18: CRS(as.character(projection(crs)))
  19: stop(res[[2]])
  
  ── 2. Error: glcm on 5x7 window with 2x3 shift works (@test-glcm.R#48)  ────────
  no arguments in initialization list
  1: expect_equal(get_pkg_glcm_texture("mean_ENVI", c(5, 7), c(2, 3)), expected = getValues(expected_textures_5x7_2x3$mean_ENVI), 
         tolerance = 1e-06) at testthat/test-glcm.R:48
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_pkg_glcm_texture("mean_ENVI", c(5, 7), c(2, 3))
  5: glcm(test_raster, 32, window, shift, statistic, na_val = 0) at testthat/test-glcm.R:14
  6: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  7: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  8: .local(x, ...)
  9: raster(x)
  10: raster(x)
  11: .local(x, ...)
  12: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  13: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  14: .local(x, ...)
  15: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  16: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  17: .local(...)
  18: CRS(as.character(projection(crs)))
  19: stop(res[[2]])
  
  ── 3. Error: (unknown) (@test-glcm.R#113)  ─────────────────────────────────────
  no arguments in initialization list
  1: glcm(test_raster, 32, c(3, 3), c(1, 1), "correlation", na_val = 0) at testthat/test-glcm.R:113
  2: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  3: raster::cut(x, breaks = seq(min_x, max_x, length.out = (n_grey + 1)), include.lowest = TRUE, 
         right = FALSE)
  4: .local(x, ...)
  5: raster(x)
  6: raster(x)
  7: .local(x, ...)
  8: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  9: raster(x@extent, nrows = x@nrows, ncols = x@ncols, crs = x@crs)
  10: .local(x, ...)
  11: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  12: raster(xmn = x@xmin, xmx = x@xmax, ymn = x@ymin, ymx = x@ymax, ncols = ncols, nrows = nrows, 
         crs = crs, ...)
  13: .local(...)
  14: CRS(as.character(projection(crs)))
  15: stop(res[[2]])
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 3
  1. Error: glcm on 3x3 window with 1x1 shift works (@test-glcm.R#21) 
  2. Error: glcm on 5x7 window with 2x3 shift works (@test-glcm.R#48) 
  3. Error: (unknown) (@test-glcm.R#113) 
  
  Error: testthat unit tests failed
  Execution halted