Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(smoothr)
  
  Attaching package: 'smoothr'
  
  The following object is masked from 'package:stats':
  
      smooth
  
  > 
  > test_check("smoothr")
  == Failed tests ================================================================
  -- Error (test_drop-crumbs.R:45:3): drop_crumbs() handling of empty results ----
  Error: no applicable method for 'units' applied to an object of class "c('double', 'numeric')"
  Backtrace:
       x
    1. +-smoothr::drop_crumbs(as(jagged_polygons, "Spatial"), threshold = 2e+20) test_drop-crumbs.R:45:2
    2. \-smoothr:::drop_crumbs.Spatial(...)
    3.   +-smoothr::drop_crumbs(...)
    4.   \-smoothr:::drop_crumbs.sf(...)
    5.     +-smoothr::drop_crumbs(...)
    6.     \-smoothr:::drop_crumbs.sfc(...)
    7.       +-units::set_units(1, units(size_fxn(x[1])), mode = "standard")
    8.       +-units:::set_units.numeric(1, units(size_fxn(x[1])), mode = "standard")
    9.       | \-units::as_units(value, ...)
   10.       \-base::units(size_fxn(x[1]))
  -- Error (test_drop-crumbs.R:55:3): drop_crumbs() works for different input formats --
  Error: no applicable method for 'units' applied to an object of class "c('double', 'numeric')"
  Backtrace:
       x
    1. +-smoothr::drop_crumbs(as(jagged_polygons, "Spatial"), threshold = 2e+08) test_drop-crumbs.R:55:2
    2. \-smoothr:::drop_crumbs.Spatial(...)
    3.   +-smoothr::drop_crumbs(...)
    4.   \-smoothr:::drop_crumbs.sf(...)
    5.     +-smoothr::drop_crumbs(...)
    6.     \-smoothr:::drop_crumbs.sfc(...)
    7.       +-units::set_units(1, units(size_fxn(x[1])), mode = "standard")
    8.       +-units:::set_units.numeric(1, units(size_fxn(x[1])), mode = "standard")
    9.       | \-units::as_units(value, ...)
   10.       \-base::units(size_fxn(x[1]))
  -- Error (test_fill-holes.R:35:3): fill_holes() works for different input formats --
  Error: both operands of the expression should be "units" objects
  Backtrace:
      x
   1. \-units:::Ops.units(st_area(s_sf), st_area(st_as_sf(s_spdf))) test_fill-holes.R:35:2
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 151 ]
  Error: Test failures
  Execution halted