Running ‘testthat.R’ [42s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(grainchanger)
  > 
  > test_check("grainchanger")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-winmove_agg.R:4:3): shei calculation is correct ─────────────────
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. └─grainchanger::winmove_agg(...) test-winmove_agg.R:4:2
    2.   └─furrr::future_map_dbl(...)
    3.     └─furrr:::furrr_map_template(...)
    4.       └─furrr:::furrr_template(...)
    5.         ├─future::value(futures)
    6.         └─future:::value.list(futures)
    7.           ├─future::resolve(...)
    8.           └─future:::resolve.list(...)
    9.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:15:3): shdi calculation is correct ────────────────
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  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(...)
    5.         ├─future::value(futures)
    6.         └─future:::value.list(futures)
    7.           ├─future::resolve(...)
    8.           └─future:::resolve.list(...)
    9.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:41:3): prop calculation is correct when lc given does not exist ──
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. └─grainchanger::winmove_agg(...) test-winmove_agg.R:41:2
    2.   └─furrr::future_map_dbl(...)
    3.     └─furrr:::furrr_map_template(...)
    4.       └─furrr:::furrr_template(...)
    5.         ├─future::value(futures)
    6.         └─future:::value.list(futures)
    7.           ├─future::resolve(...)
    8.           └─future:::resolve.list(...)
    9.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:52:3): mean calculation with non-rectangle coarse data is correct ──
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. └─grainchanger::winmove_agg(...) test-winmove_agg.R:52:2
    2.   └─furrr::future_map_dbl(...)
    3.     └─furrr:::furrr_map_template(...)
    4.       └─furrr:::furrr_template(...)
    5.         ├─future::value(futures)
    6.         └─future:::value.list(futures)
    7.           ├─future::resolve(...)
    8.           └─future:::resolve.list(...)
    9.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:64:3): output is vector of length of input ────────
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. └─grainchanger::winmove_agg(...) test-winmove_agg.R:64:2
    2.   └─furrr::future_map_dbl(...)
    3.     └─furrr:::furrr_map_template(...)
    4.       └─furrr:::furrr_template(...)
    5.         ├─future::value(futures)
    6.         └─future:::value.list(futures)
    7.           ├─future::resolve(...)
    8.           └─future:::resolve.list(...)
    9.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   10.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:75:3): throws warning about edge effects ──────────
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-winmove_agg.R:75:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─grainchanger::winmove_agg(...)
    7.   └─furrr::future_map_dbl(...)
    8.     └─furrr:::furrr_map_template(...)
    9.       └─furrr:::furrr_template(...)
   10.         ├─future::value(futures)
   11.         └─future:::value.list(futures)
   12.           ├─future::resolve(...)
   13.           └─future:::resolve.list(...)
   14.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   15.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:85:3): prints message about grids being rectangular ──
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-winmove_agg.R:85:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─grainchanger::winmove_agg(...)
    7.   └─furrr::future_map_dbl(...)
    8.     └─furrr:::furrr_map_template(...)
    9.       └─furrr:::furrr_template(...)
   10.         ├─future::value(futures)
   11.         └─future:::value.list(futures)
   12.           ├─future::resolve(...)
   13.           └─future:::resolve.list(...)
   14.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   15.               └─future:::signalConditions(...)
  ── Error (test-winmove_agg.R:97:3): winmove_agg can take different grid inputs ──
  Error in `Math.data.frame(y)`: non-numeric-alike variable(s) in data frame: sf..st_geometry.sf..st_buffer.grid_cell..dist...d..endCapStyle....SQUARE...
  Backtrace:
       █
    1. ├─testthat::expect_is(...) test-winmove_agg.R:97:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─grainchanger::winmove_agg(...)
    5.   └─furrr::future_map_dbl(...)
    6.     └─furrr:::furrr_map_template(...)
    7.       └─furrr:::furrr_template(...)
    8.         ├─future::value(futures)
    9.         └─future:::value.list(futures)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  
  [ FAIL 8 | WARN 8 | SKIP 1 | PASS 22 ]
  Error: Test failures
  Execution halted