Running 'testthat.R' [23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rasterpic)
  > 
  > test_check("rasterpic")
  'crs' is NA.
  'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
  'crs' is NA.
  'crs' is NA.
  'crs' is NA.
  'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
  [ FAIL 4 | WARN 0 | SKIP 26 | PASS 230 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (26)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-errors_messages.R:84:3'): Message in mask raster ───────────────
  Error in `file.append(to[okay], from[okay])`: could not allocate copy buffer
  Backtrace:
      ▆
   1. └─rasterpic:::testhelp_load_rast(...) at test-errors_messages.R:84:2
   2.   └─base::file.copy(path, tmp, overwrite = TRUE)
   3.     └─base::file.append(to[okay], from[okay])
  ── Error ('test-errors_messages.R:105:3'): Message in mask raster with SpatExtent ──
  Error in `file.append(to[okay], from[okay])`: could not allocate copy buffer
  Backtrace:
      ▆
   1. └─rasterpic:::testhelp_load_rast(...) at test-errors_messages.R:105:2
   2.   └─base::file.copy(path, tmp, overwrite = TRUE)
   3.     └─base::file.append(to[okay], from[okay])
  ── Error ('test-expand.R:7:3'): Expand factor ──────────────────────────────────
  <std::bad_alloc/C++Error/error/condition>
  Error: std::bad_alloc
  Backtrace:
       ▆
    1. └─rasterpic::rasterpic_img(x, img, expand = 0) at test-expand.R:7:2
    2.   └─rasterpic:::rpic_read(img, crs)
    3.     ├─terra::rast(pngfile)
    4.     └─terra::rast(pngfile)
    5.       └─terra (local) .local(x, ...)
    6.         ├─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
    7.         └─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
    8.           ├─terra::setValues(x, value, keepnames = TRUE)
    9.           └─terra::setValues(x, value, keepnames = TRUE)
   10.             └─terra (local) .local(x, values, ...)
   11.               └─y@ptr$setValues(values, opt)
  ── Error ('test-fileformat.R:7:3'): Test all image formats with UK ─────────────
  Error: cannot allocate vector of size 7.3 Mb
  Backtrace:
       ▆
    1. └─rasterpic::rasterpic_img(x, img) at test-fileformat.R:7:2
    2.   └─rasterpic:::rpic_read(img, crs)
    3.     ├─terra::rast(pngfile)
    4.     └─terra::rast(pngfile)
    5.       └─terra (local) .local(x, ...)
    6.         ├─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
    7.         └─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
    8.           ├─terra::setValues(x, value, keepnames = TRUE)
    9.           └─terra::setValues(x, value, keepnames = TRUE)
   10.             └─terra (local) .local(x, values, ...)
   11.               ├─base::as.vector(aperm(values, c(2, 1, 3)))
   12.               ├─base::aperm(values, c(2, 1, 3))
   13.               └─base::aperm.default(values, c(2, 1, 3))
  
  [ FAIL 4 | WARN 0 | SKIP 26 | PASS 230 ]
  Error: Test failures
  Execution halted