Running ‘testthat.R’ [87s/98s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(grainchanger)
  > 
  > test_check("grainchanger")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-nomove_agg.R:45:3): range calculation with na works ───────────
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. grainchanger::nomove_agg(...) test-nomove_agg.R:45:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-nomove_agg.R:45:3): range calculation with na works ───────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. grainchanger::nomove_agg(...) test-nomove_agg.R:45:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-nomove_agg.R:45:3): range calculation with na works ───────────
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. grainchanger::nomove_agg(...) test-nomove_agg.R:45:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-nomove_agg.R:45:3): range calculation with na works ───────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. grainchanger::nomove_agg(...) test-nomove_agg.R:45:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:4:3): shei calculation is correct ───────────────
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
  Backtrace:
   1. grainchanger::winmove_agg(...) test-winmove_agg.R:4:2
   2. usethis::ui_warn(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:15:3): shdi calculation is correct ──────────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. grainchanger::winmove_agg(...) test-winmove_agg.R:15:2
    2. furrr::future_map_dbl(...)
    3. furrr:::furrr_map_template(...)
    4. furrr:::furrr_template(...)
    6. future:::value.list(futures)
    8. future:::resolve.list(...)
    9. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10. future:::signalConditions(...)
  ── Warning (test-winmove_agg.R:37:3): prop calculation is correct when lc given does not exist ──
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,7,8,9
  Backtrace:
   1. grainchanger::winmove_agg(...) test-winmove_agg.R:37:2
   2. usethis::ui_warn(...)
  ── Warning (test-winmove_agg.R:60:3): output is vector of length of input ──────
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,7,8,9
  Backtrace:
   1. grainchanger::winmove_agg(...) test-winmove_agg.R:60:2
   2. usethis::ui_warn(...)
  ── Warning (test-winmove_agg.R:93:3): winmove_agg can take different grid inputs ──
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
  Backtrace:
   1. testthat::expect_is(...) test-winmove_agg.R:93:2
   4. grainchanger::winmove_agg(...)
   5. usethis::ui_warn(...)
  ── Warning (test-winmove_agg.R:102:3): winmove_agg can take different grid inputs ──
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
  Backtrace:
   1. testthat::expect_is(...) test-winmove_agg.R:102:2
   4. grainchanger::winmove_agg(...)
   5. usethis::ui_warn(...)
  ── Warning (test-winmove_agg.R:111:3): winmove_agg can take different grid inputs ──
  Moving window extends beyond extent of `fine_dat`
  You will get edge effects for the following cells of `coarse_dat`:
  1,2,3,4,5,6,10,11,15,16,20,21,22,23,24,25
  Backtrace:
   1. testthat::expect_is(...) test-winmove_agg.R:111:2
   4. grainchanger::winmove_agg(...)
   5. usethis::ui_warn(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-winmove_agg.R:33:3): var_range calculation is correct ─────────
  `d` not equal to `wm_agg_range`.
  53/110 mismatches (average diff: 0.00619)
  [6]  0.331 - 0.333 == -0.00224
  [7]  0.312 - 0.309 ==  0.00299
  [8]  0.428 - 0.417 ==  0.01120
  [9]  0.319 - 0.329 == -0.00997
  [10] 0.435 - 0.440 == -0.00516
  [11] 0.315 - 0.313 ==  0.00290
  [17] 0.334 - 0.336 == -0.00224
  [18] 0.348 - 0.365 == -0.01661
  [19] 0.391 - 0.411 == -0.01999
  ...
  
  [ FAIL 1 | WARN 16 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted