Running ‘cast.R’
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ...4c4
< Linking to GEOS 3.6.0, GDAL 2.1.2, proj.4 4.9.2
---
> Linking to GEOS 3.5.0, GDAL 2.1.0, proj.4 4.9.2
  Running ‘crs.R’
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ... OK
  Running ‘dist.R’
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ... OK
  Running ‘empty.R’
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ...91c91
< GDAL has 62 drivers
---
> GDAL has 77 drivers
  Running ‘geos.R’
  Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ... OK
  Running ‘graticule.R’
  Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
  Running ‘grid.R’
  Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
  Running ‘plot.R’
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’
  Running ‘roundtrip.R’
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ... OK
  Running ‘sfc.R’
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...187c187
< In `st_crs<-.sfc`(`*tmp*`, value = crs) :
---
> In `st_crs<-.sfc`(`*tmp*`, value = 3857) :
402c402
< "3.6.0" "2.1.2" "4.9.2" 
---
> "3.5.0" "2.1.0" "4.9.2" 
  Running ‘sfg.R’
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘testthat.R’
  Running ‘wkb.R’
  Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ...62a63
> LINESTRING (1 7 13,2 8 14,3 9 15,4 10 16,5 11 17,6 12 18)
64a66
> LINESTRING (1 7,2 8,3 9,4 10,5 11,6 12)
66a69
> MULTIPOINT (1 7 13,2 8 14,3 9 15,4 10 16,5 11 17,6 12 18)
68a72
> MULTIPOINT (1 7,2 8,3 9,4 10,5 11,6 12)
70a75
> POINT (0 0 0)
72a78
> POINT (0 0)
  Running ‘write.R’
  Comparing ‘write.Rout’ to ‘write.Rout.save’ ... OK
Running the tests in ‘tests/read.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(sf))
  > if ("GPKG" %in% st_drivers()$name) {
  + 	tst = st_read(system.file("gpkg/nc.gpkg", package="sf"), "nc.gpkg", crs = 4267, quiet = TRUE)
  + 	tst = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE) # default layer name
  + }
  > 
  > tst = st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE) # no layer specified
  > 
  > # data from https://github.com/edzer/sfr/issues/6
  > tst = st_read(system.file("shape/storms_xyz.shp", package="sf"), quiet = TRUE)
  > class(st_geometry(tst))
  [1] "sfc_LINESTRING" "sfc"           
  > class(st_geometry(tst)[[1]])
  [1] "XYZ"        "LINESTRING" "sfg"       
  > tst = st_read(system.file("shape/storms_xyzm.shp", package="sf"), quiet = TRUE)
  > class(st_geometry(tst))
  [1] "sfc_LINESTRING" "sfc"           
  > class(st_geometry(tst)[[1]])
  [1] "XYM"        "LINESTRING" "sfg"       
  > tst = st_read(system.file("shape/storms_xyz_feature.shp", package="sf"), quiet = TRUE)
  > class(st_geometry(tst))
  [1] "sfc_LINESTRING" "sfc"           
  > class(st_geometry(tst)[[1]])
  [1] "XYZ"        "LINESTRING" "sfg"       
  > tst = st_read(system.file("shape/storms_xyzm_feature.shp", package="sf"), quiet = TRUE)
  > class(st_geometry(tst))
  [1] "sfc_LINESTRING" "sfc"           
  > class(st_geometry(tst)[[1]])
  [1] "XYM"        "LINESTRING" "sfg"       
  > 
  > if ("GPKG" %in% st_drivers()$name) { # read Int64
  +     print(st_read(system.file("gpkg/tl.gpkg", package="sf"), quiet = TRUE)$AWATER)
  +     print(st_read(system.file("gpkg/tl.gpkg", package="sf"), , quiet = TRUE, int64_as_string = TRUE)$AWATER)
  + }
  [1] 1028678842
  [1] 1028678842
  Levels: 1028678842
  > 
  > # see https://github.com/edzer/sfr/issues/45 :
  > if ("OSM" %in% st_drivers()$name) {
  + 	osm = system.file("osm/overpass.osm", package="sf")
  + 	print(st_layers(osm))
  + 	suppressWarnings(print(st_layers(osm, do_count = TRUE)))
  + 	suppressWarnings(print(st_read(osm, "multipolygons", quiet = TRUE)))
  + }
  Driver: OSM 
  Available layers:
          layer_name       geometry_type features fields
  1           points               Point       NA     10
  2            lines         Line String       NA      9
  3 multilinestrings   Multi Line String       NA      4
  4    multipolygons       Multi Polygon       NA     25
  5  other_relations Geometry Collection       NA      4
  Driver: OSM 
  Available layers:
          layer_name       geometry_type features fields
  1           points               Point        0     10
  2            lines         Line String        0      9
  3 multilinestrings   Multi Line String        0      4
  4    multipolygons       Multi Polygon        0     25
  5  other_relations Geometry Collection        0      4
  
   *** caught segfault ***
  address 0x0, cause 'memory not mapped'
  
  Traceback:
   1: .Call("sf_CPL_read_ogr", PACKAGE = "sf", datasource, layer, options,     quiet, iGeomField, toTypeUser, promote_to_multi, int64_as_string)
   2: CPL_read_ogr(dsn, layer, as.character(options), quiet, iGeomField -     1L, type, promote_to_multi, int64_as_string)
   3: st_read(osm, "multipolygons", quiet = TRUE)
   4: print(st_read(osm, "multipolygons", quiet = TRUE))
   5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
   6: suppressWarnings(print(st_read(osm, "multipolygons", quiet = TRUE)))
  An irrecoverable exception occurred. R is aborting now ...