Running ‘testthat.R’ [24s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(divvy)
  > 
  > test_check("divvy")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 22 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_calc_eco_variables.R:4:3'): rangeSize returns appropriate values ──
  Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')"
  Backtrace:
      ▆
   1. └─divvy::rangeSize(xy) at test_calc_eco_variables.R:4:3
   2.   └─base::cbind(...)
   3.     └─units (local) cbind(deparse.level, ...)
   4.       └─base::units(dots[[1]])
  ── Error ('test_calc_eco_variables.R:19:3'): sdSumry returns values within basic tolerance limits ──
  Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')"
  Backtrace:
      ▆
   1. └─divvy::sdSumry(...) at test_calc_eco_variables.R:19:3
   2.   └─divvy (local) dfsumry(dat)
   3.     └─divvy::rangeSize(coords = locs, crs = crs)
   4.       └─base::cbind(...)
   5.         └─units (local) cbind(deparse.level, ...)
   6.           └─base::units(dots[[1]])
  ── Failure ('test_calc_eco_variables.R:42:3'): rangeSize and sdSumry accept projected coords ──
  Expected `rangeSize(bivAlt[, xyCell], crs = prj)` to run without any conditions.
  i Actually got a <simpleError> with text:
    no applicable method for 'units' applied to an object of class "c('integer', 'numeric')"
  ── Error ('test_calc_eco_variables.R:43:3'): rangeSize and sdSumry accept projected coords ──
  Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')"
  Backtrace:
      ▆
   1. └─divvy::rangeSize(bivAlt[, xyCell], crs = prj) at test_calc_eco_variables.R:43:3
   2.   └─base::cbind(...)
   3.     └─units (local) cbind(deparse.level, ...)
   4.       └─base::units(dots[[1]])
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted