Running 'test-all.R' [77s/85s]
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. Failure: as.json works with geojson class inputs (@test-as.json.R#52)  ---
  unclass(as.json(e, verbose = FALSE)) not equal to "{\"type\":\"FeatureCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"urn:ogc:def:crs:OGC:1.3:CRS84\"}},\"features\":[{\"type\":\"Feature\",\"id\":1,\"properties\":{\"dummy\":0},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-100,40],[-90,50],[-85,45],[-100,40]]]}},{\"type\":\"Feature\",\"id\":2,\"properties\":{\"dummy\":0},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-90,30],[-80,40],[-75,35],[-90,30]]]}}]}".
  1/1 mismatches
  x[1]: "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"id\
  x[1]: ":1,\"properties\":{\"dummy\":0},\"geometry\":{\"type\":\"Polygon\",\"coor
  x[1]: dinates\":[[[-100,40],[-90,50],[-85,45],[-100,40]]]}},{\"type\":\"Feature\
  x[1]: ",\"id\":2,\"properties\":{\"dummy\":0},\"geometry\":{\"type\":\"Polygon\"
  x[1]: ,\"coordinates\":[[[-90,30],[-80,40],[-75,35],[-90,30]]]}}]}"
  y[1]: "{\"type\":\"FeatureCollection\",\"crs\":{\"type\":\"name\",\"properties\"
  y[1]: :{\"name\":\"urn:ogc:def:crs:OGC:1.3:CRS84\"}},\"features\":[{\"type\":\"F
  y[1]: eature\",\"id\":1,\"properties\":{\"dummy\":0},\"geometry\":{\"type\":\"Po
  y[1]: lygon\",\"coordinates\":[[[-100,40],[-90,50],[-85,45],[-100,40]]]}},{\"typ
  y[1]: e\":\"Feature\",\"id\":2,\"properties\":{\"dummy\":0},\"geometry\":{\"t...
  
  OGR: Corrupt data
  -- 2. Error: geojson_list: convert_wgs84 works with sf classes (@test-crs_conver
  OGR error
  Backtrace:
    1. testthat::expect_equal(...)
    5. geojsonio:::geojson_list.sf(sf_3005, convert_wgs84 = TRUE, crs = 3005)
    7. geojsonio:::convert_wgs84.sf(input, crs)
    8. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   10. sf:::st_transform.sf(x, 4326)
   12. sf:::st_transform.sfc(st_geometry(x), crs, ...)
   13. sf:::Ops.crs(crs, st_crs(x))
   14. sf:::Ops.crs(e1, e2)
   15. sf:::CPL_crs_equivalent(e1$proj4string, e2$proj4string)
  
  OGR: Corrupt data
  -- 3. Error: geojson_json: convert_wgs84 works with sf classes (@test-crs_conver
  OGR error
  Backtrace:
    1. testthat::expect_equal(...)
    6. geojsonio:::geojson_json.sf(sf_3005, convert_wgs84 = TRUE, crs = 3005)
   14. geojsonio:::geojson_list.sf(...)
   16. geojsonio:::convert_wgs84.sf(input, crs)
   17. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   19. sf:::st_transform.sf(x, 4326)
   21. sf:::st_transform.sfc(st_geometry(x), crs, ...)
   22. sf:::Ops.crs(crs, st_crs(x))
   23. sf:::Ops.crs(e1, e2)
   24. sf:::CPL_crs_equivalent(e1$proj4string, e2$proj4string)
  
  OGR: Corrupt data
  -- 4. Error: geojson_write: convert_wgs84 works with sf classes (@test-crs_conve
  OGR error
  Backtrace:
    1. testthat::expect_equal(...)
    7. geojsonio:::geojson_write.sf(sf_3005, convert_wgs84 = TRUE, crs = 3005)
   10. geojsonio:::geojson_list.sf(...)
   12. geojsonio:::convert_wgs84.sf(input, crs)
   13. geojsonio:::convert_wgs84_sf_sfc(x, crs = crs)
   15. sf:::st_transform.sf(x, 4326)
   17. sf:::st_transform.sfc(st_geometry(x), crs, ...)
   18. sf:::Ops.crs(crs, st_crs(x))
   19. sf:::Ops.crs(e1, e2)
   20. sf:::CPL_crs_equivalent(e1$proj4string, e2$proj4string)
  
  -- 5. Failure: geojson_read works with file inputs (@test-geojson_read.R#12)  --
  aa$crs inherits from `NULL` not `list`.
  
  -- 6. Failure: geojson_read works with file inputs (@test-geojson_read.R#16)  --
  sort(names(aa)) not equal to `top_names`.
  Lengths differ: 3 is not 4
  
  -- 7. Failure: geojson_read works with as.location inputs (@test-geojson_read.R#
  aa$crs inherits from `NULL` not `list`.
  
  -- 8. Failure: geojson_read works with as.location inputs (@test-geojson_read.R#
  sort(names(aa)) not equal to `top_names`.
  Lengths differ: 3 is not 4
  
  == testthat results  ===========================================================
  [ OK: 392 | SKIPPED: 30 | WARNINGS: 3 | FAILED: 8 ]
  1. Failure: as.json works with geojson class inputs (@test-as.json.R#52) 
  2. Error: geojson_list: convert_wgs84 works with sf classes (@test-crs_convert.R#103) 
  3. Error: geojson_json: convert_wgs84 works with sf classes (@test-crs_convert.R#131) 
  4. Error: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#161) 
  5. Failure: geojson_read works with file inputs (@test-geojson_read.R#12) 
  6. Failure: geojson_read works with file inputs (@test-geojson_read.R#16) 
  7. Failure: geojson_read works with as.location inputs (@test-geojson_read.R#38) 
  8. Failure: geojson_read works with as.location inputs (@test-geojson_read.R#42) 
  
  Error: testthat unit tests failed
  Execution halted