Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ASGS.foyer)
  > 
  > test_check("ASGS.foyer")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-latlon2sa.R:4:3): Example works ─────────────────────────────────
  Error: replacement has length zero
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-latlon2sa.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─ASGS.foyer::latlon2SA(-35.3, 149.2, to = "STE", yr = "2016")
    5.   ├─sp::over(points, shapefile)
    6.   └─sp::over(points, shapefile)
    7.     └─sp:::.local(x, y, returnList, fn, ...)
    8.       ├─sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
    9.       └─sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
   10.         └─sp:::pointsInSpatialPolygons(x, y, returnList)
   11.           └─sp:::pointsInPolys2(...)
  ── Error (test-latlon2sa.R:11:3): Multiple ─────────────────────────────────────
  Error: replacement has length zero
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-latlon2sa.R:11:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─ASGS.foyer::latlon2SA(lat, lon, to = "STE", yr = "2016")
    5.   ├─sp::over(points, shapefile)
    6.   └─sp::over(points, shapefile)
    7.     └─sp:::.local(x, y, returnList, fn, ...)
    8.       ├─sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
    9.       └─sp::over(x, geometry(y), returnList = TRUE, minDimension = minDimension)
   10.         └─sp:::pointsInSpatialPolygons(x, y, returnList)
   11.           └─sp:::pointsInPolys2(...)
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 1 ]
  Error: Test failures
  Execution halted