Running 'testthat.R' [22s]
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(rasterpic)
  > 
  > test_check("rasterpic")
  Starting 2 test processes.
  Saving _problems/test-errors_messages-71.R
  Saving _problems/test-errors_messages-85.R
  Saving _problems/test-errors_messages-105.R
  Saving _problems/test-fileformat-76.R
  [ FAIL 4 | WARN 15 | SKIP 9 | PASS 272 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-bbox.R:26:1', 'test-errors_messages.R:1:1',
    'test-errors_messages.R:10:1', 'test-errors_messages.R:29:1',
    'test-fileformat.R:143:3', 'test-online.R:2:3', 'test-online.R:15:3',
    'test-nlayers.R:1:1', 'test-nlayers.R:18:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-errors_messages.R:71:3'): Message in lonlat raster ─────────────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. ├─terra::project(x, "epsg:4326") at test-errors_messages.R:71:3
   2. └─terra::project(x, "epsg:4326")
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(x, "project")
   5.       └─terra:::error(f, x@pntr$getError())
  ── Error ('test-errors_messages.R:85:3'): Message in mask raster ───────────────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. ├─terra::project(x, "epsg:3857") at test-errors_messages.R:85:3
   2. └─terra::project(x, "epsg:3857")
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(x, "project")
   5.       └─terra:::error(f, x@pntr$getError())
  ── Error ('test-errors_messages.R:105:3'): Message in mask raster with SpatExtent ──
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. ├─terra::project(x, "epsg:3857") at test-errors_messages.R:105:3
   2. └─terra::project(x, "epsg:3857")
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(x, "project")
   5.       └─terra:::error(f, x@pntr$getError())
  ── Error ('test-fileformat.R:76:3'): Test all image formats with a raster ──────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. ├─terra::project(x, "epsg:3857") at test-fileformat.R:76:3
   2. └─terra::project(x, "epsg:3857")
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(x, "project")
   5.       └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 4 | WARN 15 | SKIP 9 | PASS 272 ]
  Error:
  ! Test failures.
  Execution halted