Running ‘testthat.R’ [8s/20s]
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")
  ── 1. Error: drop_crumbs() works (@test_drop-crumbs.r#8)  ──────────────────────
  package lwgeom required, please install it first
  Backtrace:
   1. smoothr::drop_crumbs(p, threshold = area_thresh)
   2. smoothr:::drop_crumbs.sfc(p, threshold = area_thresh)
   8. sf:::st_area.sfc(x[1])
  
  ── 2. Error: drop_crumbs() doesn't alter features with nothing dropped (@test_dr
  package lwgeom required, please install it first
  Backtrace:
    1. smoothr::drop_crumbs(p, threshold = units::set_units(0.1, m^2))
    2. smoothr:::drop_crumbs.sf(...)
    4. smoothr:::drop_crumbs.sfc(...)
   10. sf:::st_area.sfc(x[1])
  
  ── 3. Error: drop_crumbs() drop_empty works (@test_drop-crumbs.r#32)  ──────────
  package lwgeom required, please install it first
  Backtrace:
   1. smoothr::drop_crumbs(p, threshold = area_thresh, drop_empty = FALSE)
   2. smoothr:::drop_crumbs.sfc(p, threshold = area_thresh, drop_empty = FALSE)
   8. sf:::st_area.sfc(x[1])
  
  ── 4. Error: drop_crumbs() handling of empty results (@test_drop-crumbs.r#41)  ─
  package lwgeom required, please install it first
  Backtrace:
    1. smoothr::drop_crumbs(jagged_polygons, threshold = 2e+20)
    2. smoothr:::drop_crumbs.sf(jagged_polygons, threshold = 2e+20)
    4. smoothr:::drop_crumbs.sfc(...)
   10. sf:::st_area.sfc(x[1])
  
  ── 5. Error: drop_crumbs() works for different input formats (@test_drop-crumbs.
  package lwgeom required, please install it first
  Backtrace:
    1. smoothr::drop_crumbs(jagged_polygons, threshold = 2e+08)
    2. smoothr:::drop_crumbs.sf(jagged_polygons, threshold = 2e+08)
    4. smoothr:::drop_crumbs.sfc(...)
   10. sf:::st_area.sfc(x[1])
  
  ── 6. Error: fill_holes() works (@test_fill-holes.r#8)  ────────────────────────
  package lwgeom required, please install it first
  Backtrace:
   1. smoothr::fill_holes(p, threshold = units::set_units(1000, km^2))
   2. smoothr:::fill_holes.sfc(...)
   8. sf:::st_area.sfc(x[1])
  
  ── 7. Error: fill_holes() doesn't alter polygons with no holes (@test_fill-holes
  package lwgeom required, please install it first
  Backtrace:
    1. smoothr::fill_holes(p, threshold = units::set_units(1e+12, km^2))
    2. smoothr:::fill_holes.sf(...)
    5. smoothr:::fill_holes.sfc(sf::st_geometry(x), threshold = threshold)
   11. sf:::st_area.sfc(x[1])
  
  ── 8. Error: fill_holes() works for different input formats (@test_fill-holes.r#
  package lwgeom required, please install it first
  Backtrace:
    1. smoothr::fill_holes(jp, threshold = 2e+08)
    2. smoothr:::fill_holes.sf(jp, threshold = 2e+08)
    5. smoothr:::fill_holes.sfc(sf::st_geometry(x), threshold = threshold)
   11. sf:::st_area.sfc(x[1])
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 108 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: drop_crumbs() works (@test_drop-crumbs.r#8) 
  2. Error: drop_crumbs() doesn't alter features with nothing dropped (@test_drop-crumbs.r#21) 
  3. Error: drop_crumbs() drop_empty works (@test_drop-crumbs.r#32) 
  4. Error: drop_crumbs() handling of empty results (@test_drop-crumbs.r#41) 
  5. Error: drop_crumbs() works for different input formats (@test_drop-crumbs.r#51) 
  6. Error: fill_holes() works (@test_fill-holes.r#8) 
  7. Error: fill_holes() doesn't alter polygons with no holes (@test_fill-holes.r#17) 
  8. Error: fill_holes() works for different input formats (@test_fill-holes.r#23) 
  
  Error: testthat unit tests failed
  Execution halted