Running ‘test-all.R’ [72s/75s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library("geojsonio")
  
  Attaching package: 'geojsonio'
  
  The following object is masked from 'package:base':
  
      pretty
  
  > test_check("geojsonio")
  ── 1. Error: works with sf (@test-crs_convert.R#26)  ───────────────────────────
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    6. geojsonio:::convert_wgs84.sf(sf_4326)
    7. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
    9. geojsonio:::is_wgs84.sf(x, warn = FALSE)
   11. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ── 2. Error: works with sfc (@test-crs_convert.R#35)  ──────────────────────────
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    9. geojsonio:::convert_wgs84.sfc(sfc)
   10. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   12. geojsonio:::is_wgs84.sfc(x, warn = FALSE)
  
  ── 3. Error: allows supplying a CRS with sf (@test-crs_convert.R#57)  ──────────
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    6. geojsonio:::convert_wgs84.sf(sf, crs = 3005)
    7. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
    9. geojsonio:::is_wgs84.sf(x, warn = FALSE)
   11. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ── 4. Error: allows supplying a CRS with sfc (@test-crs_convert.R#62)  ─────────
  argument is of length zero
  Backtrace:
   1. testthat::expect_is(...)
   6. geojsonio:::convert_wgs84.sfc(sfc, crs = 3005)
   7. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   9. geojsonio:::is_wgs84.sfc(x, warn = FALSE)
  
  ── 5. Error: is_wgs84 works with sf (@test-crs_convert.R#67)  ──────────────────
  argument is of length zero
  Backtrace:
   1. testthat::expect_true(is_wgs84(sf_4326))
   5. geojsonio:::is_wgs84.sf(sf_4326)
   7. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ── 6. Error: is_wgs84 works with sfc (@test-crs_convert.R#74)  ─────────────────
  argument is of length zero
  Backtrace:
   1. testthat::expect_true(is_wgs84(sfc))
   5. geojsonio:::is_wgs84.sfc(sfc)
  
  ── 7. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 8. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 9. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 10. Error: geojson_list: convert_wgs84 works with sf classes (@test-crs_conve
  argument is of length zero
  Backtrace:
    1. testthat::expect_equal(...)
    5. geojsonio:::geojson_list.sf(sf_4326, convert_wgs84 = TRUE)
    7. geojsonio:::convert_wgs84.sf(input, crs)
    8. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   10. geojsonio:::is_wgs84.sf(x, warn = FALSE)
   12. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ── 11. Failure: geojson_json: convert_wgs84 works with Spatial classes (@test-cr
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 12. Failure: geojson_json: convert_wgs84 works with Spatial classes (@test-cr
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 13. Failure: geojson_json: convert_wgs84 works with Spatial classes (@test-cr
  `a` not equal to `b`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: names for current but not for target
  Component 2: Length mismatch: comparison on first 2 components
  Component 2: Component 1: Modes: list, character
  Component 2: Component 1: names for target but not for current
  Component 2: Component 1: Length mismatch: comparison on first 1 components
  Component 2: Component 1: Component 1: 1 string mismatch
  Component 2: Component 2: Names: 1 string mismatch
  ...
  
  ── 14. Error: geojson_json: convert_wgs84 works with sf classes (@test-crs_conve
  argument is of length zero
  Backtrace:
    1. testthat::expect_equal(...)
    6. geojsonio:::geojson_json.sf(sf_4326, convert_wgs84 = TRUE)
   14. geojsonio:::geojson_list.sf(...)
   16. geojsonio:::convert_wgs84.sf(input, crs)
   17. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   19. geojsonio:::is_wgs84.sf(x, warn = FALSE)
   21. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ── 15. Error: geojson_write: convert_wgs84 works with sf classes (@test-crs_conv
  argument is of length zero
  Backtrace:
    1. testthat::expect_equal(...)
    7. geojsonio:::geojson_write.sf(sf_4326, convert_wgs84 = TRUE)
   10. geojsonio:::geojson_list.sf(...)
   12. geojsonio:::convert_wgs84.sf(input, crs)
   13. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   15. geojsonio:::is_wgs84.sf(x, warn = FALSE)
   17. geojsonio:::is_wgs84.sfc(x[[geom_col]], warn = warn)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 379 | SKIPPED: 23 | WARNINGS: 0 | FAILED: 15 ]
  1. Error: works with sf (@test-crs_convert.R#26) 
  2. Error: works with sfc (@test-crs_convert.R#35) 
  3. Error: allows supplying a CRS with sf (@test-crs_convert.R#57) 
  4. Error: allows supplying a CRS with sfc (@test-crs_convert.R#62) 
  5. Error: is_wgs84 works with sf (@test-crs_convert.R#67) 
  6. Error: is_wgs84 works with sfc (@test-crs_convert.R#74) 
  7. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs_convert.R#93) 
  8. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs_convert.R#96) 
  9. Failure: geojson_list: convert_wgs84 works with Spatial classes (@test-crs_convert.R#98) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted