Running ‘test-all.R’ [27s/50s]
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: as.json works with geojson class inputs (@test-as.json.R#25) ---------
  Cannot open layer
  1: expect_is(as.json(cc, verbose = FALSE), "json") at testthat/test-as.json.R:25
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: as.json(cc, verbose = FALSE)
  5: as.json.geojson(cc, verbose = FALSE)
  6: as.SpatialPolygonsDataFrame(x, ...)
  7: as.SpatialPolygonsDataFrame.geojson(x, ...)
  8: readOGR(x$path, "OGRGeoJSON", ...)
  9: suppressMessages(ogr_info <- ogrInfo(dsn = dsn, layer = layer, encoding = encoding, 
         use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, require_geomType = require_geomType))
  10: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  11: ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, 
         require_geomType = require_geomType)
  
  2. Error: as.json works with file name inputs (@test-as.json.R#60) -------------
  Cannot open layer
  1: expect_is(as.json(ee$path, verbose = FALSE), "json") at testthat/test-as.json.R:60
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: as.json(ee$path, verbose = FALSE)
  5: as.json.character(ee$path, verbose = FALSE)
  6: as.SpatialPolygonsDataFrame(x, ...)
  7: as.SpatialPolygonsDataFrame.character(x, ...)
  8: readOGR(x, "OGRGeoJSON", ...)
  9: suppressMessages(ogr_info <- ogrInfo(dsn = dsn, layer = layer, encoding = encoding, 
         use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, require_geomType = require_geomType))
  10: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  11: ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, 
         require_geomType = require_geomType)
  
  3. Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#138) 
  file_to_list(geojson_write(spdf_4326, convert_wgs84 = TRUE)) not equal to file_to_list(geojson_write(spdf_4326, convert_wgs84 = FALSE)).
  Component "name": 1 string mismatch
  
  
  4. Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#140) 
  file_to_list(geojson_write(spdf_4326)) not equal to file_to_list(geojson_write(spdf_3005, convert_wgs84 = TRUE)).
  Component "name": 1 string mismatch
  
  
  5. Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#143) 
  file_to_list(geojson_write(spdf_4326)) not equal to file_to_list(geojson_write(spdf_3005, convert_wgs84 = TRUE, crs = "+init=epsg:3005")).
  Component "name": 1 string mismatch
  
  
  6. Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#147) 
  file_to_list(geojson_write(spdf_4326)) not equal to file_to_list(geojson_write(spdf_3005, convert_wgs84 = TRUE, crs = 3005)).
  Component "name": 1 string mismatch
  
  
  7. Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#152) 
  file_to_list(geojson_write(sf_4326, convert_wgs84 = TRUE)) not equal to file_to_list(geojson_write(sf_4326, convert_wgs84 = FALSE)).
  Component "name": 1 string mismatch
  
  
  8. Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#154) 
  file_to_list(geojson_write(sf_4326)) not equal to file_to_list(geojson_write(sf_3005, convert_wgs84 = TRUE)).
  Component "name": 1 string mismatch
  
  
  9. Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#157) 
  file_to_list(geojson_write(sf_4326)) not equal to file_to_list(geojson_write(sf_3005, convert_wgs84 = TRUE, crs = "+init=epsg:3005")).
  Component "name": 1 string mismatch
  
  
  10. Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#161) 
  file_to_list(geojson_write(sf_4326)) not equal to file_to_list(geojson_write(sf_3005, convert_wgs84 = TRUE, crs = 3005)).
  Component "name": 1 string mismatch
  
  
  testthat results ================================================================
  OK: 369 SKIPPED: 28 FAILED: 10
  1.  Error: as.json works with geojson class inputs (@test-as.json.R#25) 
  2.  Error: as.json works with file name inputs (@test-as.json.R#60) 
  3.  Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#138) 
  4.  Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#140) 
  5.  Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#143) 
  6.  Failure: geojson_write: convert_wgs84 works with Spatial classes (@test-crs_convert.R#147) 
  7.  Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#152) 
  8.  Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#154) 
  9.  Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#157) 
  10. Failure: geojson_write: convert_wgs84 works with sf classes (@test-crs_convert.R#161) 
  
  Error: testthat unit tests failed
  Execution halted