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(OtsuFire)
  > 
  > test_check("OtsuFire")
  Processing: D:\temp\2025_12_29_16_12_34_1110\RtmpeiXqNw\filefa6863c3542a.geojson
  200
  Dissolving burned polygons by 'burned_id'
  Added column 'regen_ratio_P1' with regeneration ratios for P1
  Detected regeneration years: P1
  Created 'regenera_flag_P1' using threshold(s) from 'global' (column: regen_ratio_P1)
  Created 'regenera_flag_all' combining all defined periods.
  Writing the complete shapefile (unfiltered): D:\temp\2025_12_29_16_12_34_1110\RtmpeiXqNw/filefa6863c3542a_reg_thresh200_P1r0.01_.geojson
  Saving filtered shapefile: D:\temp\2025_12_29_16_12_34_1110\RtmpeiXqNw/filefa6863c3542a_reg_thresh200_P1r0.01__filter.geojson
  Number of polygons after filtering: 1 (removed: 0)
  Replacing original burned polygons by regenerated polygons in P1: 
  Saving _problems/test-mask_to_mosaic-9.R
  [ FAIL 1 | WARN 1 | SKIP 9 | PASS 1 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-calculate_doy_flags_basic.R:2:3',
    'test-calculate_doy_flags_polygonize.R:4:3',
    'test-calculate_polygon_metrics.R:2:3', 'test-generate_burnable_mask.R:2:3',
    'test-mosaic_raster.R:3:3', 'test-process_otsu_rasters.R:2:3',
    'test-process_otsu_regenera.R:2:3', 'test-validate_fire_map_basic.R:4:3',
    'test-validate_fire_map_gdal.R:4:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-mask_to_mosaic.R:9:3'): mask_to_mosaic applies binary mask and optional clip correctly ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test-mask_to_mosaic.R:9:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x = x, ...)
   4.     └─terra:::new_rast(...)
   5.       └─terra:::messages(r, "rast")
   6.         └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 1 | WARN 1 | SKIP 9 | PASS 1 ]
  Error:
  ! Test failures.
  Execution halted