* using log directory 'd:/Rcompile/CRANpkg/local/4.4/OtsuFire.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'OtsuFire/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'OtsuFire' version '0.1.4' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'OtsuFire' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [12s] OK * checking whether the package can be loaded with stated dependencies ... [11s] OK * checking whether the package can be unloaded cleanly ... [11s] OK * checking whether the namespace can be loaded with stated dependencies ... [12s] OK * checking whether the namespace can be unloaded cleanly ... [12s] OK * checking loading without being on the library search path ... [12s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [33s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [15s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] ERROR 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_08_01_50_00_1885\RtmpyGzEjy\fileefdc4b1dc9.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_08_01_50_00_1885\RtmpyGzEjy/fileefdc4b1dc9_reg_thresh200_P1r0.01_.geojson Saving filtered shapefile: D:\temp\2025_12_08_01_50_00_1885\RtmpyGzEjy/fileefdc4b1dc9_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 * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR