Running ‘cast.R’
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ...4c4
< Linking to GEOS 3.5.0, GDAL 2.0.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’ ...48c48
< [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957388243134,0.343987817378283,-1.87740163998045,4.0725 +units=m +no_defs"
---
> [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +units=m +no_defs"
58c58
< [1] "+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs"
---
> [1] "+proj=longlat +datum=WGS84 +no_defs"
  Running ‘dist.R’
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ...109c109
< MULTIPOINT(505.997685423939 -7.08115455161362e-...
---
> MULTIPOINT(505.997685423971 -7.08115455161362e-...
  Running ‘dplyr.R’
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...137c137
< POINT(111319.490793272 111325.142866385)
---
> POINT(111319.490793274 111325.142866385)
  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 75 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’ [12s/15s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’
  Comparing ‘read.Rout’ to ‘read.Rout.save’ ...21c21
< [1] "XYZ"        "LINESTRING" "sfg"       
---
> [1] "XYM"        "LINESTRING" "sfg"       
31c31
< [1] "XYZ"        "LINESTRING" "sfg"       
---
> [1] "XYM"        "LINESTRING" "sfg"       
69c69
< proj4string:    +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs
---
> proj4string:    +proj=longlat +datum=WGS84 +no_defs
151c151
< Writing layer `x.gpkg' to data source `/data/gannet/ripley/R/packages/tests-devel/sf.Rcheck/tests/x.gpkg' using driver `GPKG'
---
> Writing layer `x.gpkg' to data source `/home/edzer/git/sf.Rcheck/tests/x.gpkg' using driver `GPKG'
  Running ‘roundtrip.R’ [9s/11s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ... OK
  Running ‘sfc.R’
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...128c128
< proj4string:    +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs
---
> proj4string:    +proj=longlat +datum=WGS84 +no_defs
173c173
< proj4string:    +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs
---
> proj4string:    +proj=longlat +datum=WGS84 +no_defs
176,178d175
< Warning message:
< In `st_crs<-.sfc`(`*tmp*`, value = crs) :
<   st_crs<- : replacing crs does not reproject data; use st_transform for that
190c187
< In `st_crs<-.sfc`(`*tmp*`, value = crs) :
---
> In `st_crs<-.sfc`(`*tmp*`, value = 3857) :
405c402
< "3.5.0" "2.0.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’
  Running ‘write.R’
  Comparing ‘write.Rout’ to ‘write.Rout.save’ ... OK
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > suppressPackageStartupMessages(library(sf))
  > 
  > test_check("sf")
  1. Failure: st_crs works (@test_crs.R#32) --------------------------------------
  `a` not equal to `b`.
  Component "proj4string": 1 string mismatch
  
  
  OGR: Unsupported geometry type
  testthat results ================================================================
  OK: 396 SKIPPED: 5 FAILED: 1
  1. Failure: st_crs works (@test_crs.R#32) 
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/wkb.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(sf))
  > round_trip = function(x, EWKB = FALSE, pureR = FALSE) {
  + 	if (inherits(x, "sfg"))
  + 		x = st_sfc(x)
  + 	wkb = st_as_binary(x, EWKB = EWKB, pureR = pureR)
  + 	class(wkb) = "WKB"
  + 	# print(wkb)
  + 	y = st_as_sfc(wkb, EWKB = EWKB, pureR = pureR)
  + 	a = all.equal(x, y)
  + 	if (length(a) == 1 && is.logical(a) && a)
  + 		TRUE
  + 	else {
  + 		print(x)
  + 		print(wkb)
  + 		print(y)
  + 		FALSE
  + 	}
  + }
  > 
  > p3 = st_point(c(0,0,0))
  > p3m = st_point(c(0,0,0), "XYM")
  > p4 = st_point(c(0,0,0,0))
  > p2 = st_point(c(0,0))
  > ls = st_linestring(matrix(1:6,3))
  > mp = st_multipoint(matrix(1:6,3))
  > 
  > outer = matrix(c(0,0,10,0,10,10,0,10,0,0),ncol=2, byrow=TRUE)
  > hole1 = matrix(c(1,1,1,2,2,2,2,1,1,1),ncol=2, byrow=TRUE)
  > hole2 = matrix(c(5,5,5,6,6,6,6,5,5,5),ncol=2, byrow=TRUE)
  > pts = list(outer, hole1, hole2)
  > pl1 = st_polygon(pts)
  > 
  > pol1 = list(outer, hole1, hole2)
  > pol2 = list(outer + 12, hole1 + 12)
  > pol3 = list(outer + 24)
  > mp1 = st_multipolygon(list(pol1,pol2,pol3))
  > 
  > ml1 = st_multilinestring(list(outer, hole1, hole2))
  > gc = st_geometrycollection(list(p2, ls, pl1, mp1))
  > 
  > sapply(list(p3, p3m, p4, p2, ls, mp, pl1, mp1, ml1, gc), round_trip, EWKB = FALSE)
   [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
  > sapply(list(p3, p3m, p4, p2, ls, mp, pl1, mp1, ml1, gc), round_trip, EWKB = FALSE, pureR = TRUE)
   [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
  > sapply(list(p3, p3m, p4, p2, ls, mp, pl1, mp1, ml1, gc), round_trip, EWKB = TRUE)
   [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
  > sapply(list(p3, p3m, p4, p2, ls, mp, pl1, mp1, ml1, gc), round_trip, EWKB = TRUE, pureR = TRUE)
   [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
  > 
  > rawToHex(st_as_binary(st_multipoint(matrix(1:6,3))))
  [1] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
  > rawToHex(st_as_binary(st_sfc(st_point(c(0,1)), st_multipoint(matrix(1:6,3)))))
  [1] "01010000000000000000000000000000000000f03f"                                                                                                      
  [2] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
  > try(rawToHex("error"))
  Error in rawToHex("error") : 
    not implemented for objects of class character
  > 
  > # debug roundtrips sf -> GDAL -> sf; the first WKT is from GDAL, and lacks M
  > st_as_text(st_sfc(sf:::CPL_roundtrip(st_sfc(st_linestring(matrix(1:18,6,3),dim="XYZ")))))
  LINESTRING (1 7 13,2 8 14,3 9 15,4 10 16,5 11 17,6 12 18)
  [1] "LINESTRINGZ(1 7 13, 2 8 14, 3 9 15, 4 10 16, 5 11 17, 6 12 18)"
  > st_as_text(st_sfc(sf:::CPL_roundtrip(st_sfc(st_linestring(matrix(1:18,6,3),dim="XYM")))))
  OGR: Unsupported geometry type
  Error in sf:::CPL_roundtrip(st_sfc(st_linestring(matrix(1:18, 6, 3), dim = "XYM"))) : 
    OGR error
  Calls: st_as_text -> st_sfc -> <Anonymous> -> .Call
  In addition: Warning message:
  In sf:::CPL_roundtrip(st_sfc(st_linestring(matrix(1:18, 6, 3), dim = "XYM"))) :
    GDAL Error 6: Unsupported WKB type 2002
  Execution halted