Running ‘cast.R’
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ...4c4
< Linking to GEOS 3.6.1, GDAL 2.2.0, proj.4 4.9.3
---
> Linking to GEOS 3.5.1, GDAL 2.1.3, proj.4 4.9.2
  Running ‘crs.R’
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...15c15,16
<   GDAL Error 6: EPSG PCS/GCS code -1 not found in EPSG support files.  Is this a valid EPSG coordinate system?
---
>   GDAL Error 6: EPSG PCS/GCS code -1 not found in EPSG support files.  Is this a valid
> EPSG coordinate system?
27c28,29
<   GDAL Error 6: EPSG PCS/GCS code 999999 not found in EPSG support files.  Is this a valid EPSG coordinate system?
---
>   GDAL Error 6: EPSG PCS/GCS code 999999 not found in EPSG support files.  Is this a valid
> EPSG coordinate system?
45c47
< [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.2369,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +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"
  Running ‘dist.R’
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’
  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 63 drivers
---
> GDAL has 75 drivers
  Running ‘geos.R’ [11s/12s]
  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’
  Running ‘read.R’
  Comparing ‘read.Rout’ to ‘read.Rout.save’ ... OK
  Running ‘roundtrip.R’ [10s/11s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ...71c71
<  Ah     :39   1st Qu.:  80.0   epsg:NA      :  0  
---
>  Ah     :39   1st Qu.:  80.0   epsg:28992   :  0  
87c87
<  epsg:NA      :   0  
---
>  epsg:28992   :   0  
95c95
<  epsg:NA      :0  
---
>  epsg:28992   :0  
100c100
<  epsg:NA      :0  
---
>  epsg:28992   :0  
105c105
<  epsg:NA      :0  
---
>  epsg:28992   :0  
118c118
<  epsg:NA      :   0  
---
>  epsg:28992   :   0  
133c133
<  epsg:NA      :   0  
---
>  epsg:28992   :   0  
  Running ‘sfc.R’
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...367c367
< "3.6.1" "2.2.0" "4.9.3" 
---
> "3.5.1" "2.1.3" "4.9.2" 
  Running ‘sfg.R’
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘testthat.R’ [10s/12s]
  Running ‘wkb.R’
  Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ... OK
Running the tests in ‘tests/dplyr.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(sf))
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > nc = st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
  > nc %>% filter(AREA > .1) %>% plot()
  Warning message:
  plotting the first 10 out of 14 attributes; use max.plot = 14 to plot all 
  > 
  > # plot 10 smallest counties in grey:
  > nc %>% 
  +   select(BIR74, geometry) %>% 
  +   plot()
  Error in select.sf(., BIR74, geometry) : 
    requires dplyr > 0.5.0: install that first, then reinstall sf
  Calls: %>% ... _fseq -> freduce -> <Anonymous> -> select -> select.sf
  Execution halted
Running the tests in ‘tests/plot.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(sf))
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > # plot linestrings:
  > l1 = st_linestring(matrix(runif(6)-0.5,,2))
  > l2 = st_linestring(matrix(runif(6)-0.5,,2))
  > l3 = st_linestring(matrix(runif(6)-0.5,,2))
  > s = st_sf(a=2:4, b=st_sfc(l1,l2,l3))
  > plot(s, col = s$a, axes = FALSE)
  > plot(s, col = s$a)
  > attr(s$b, "proj4string") = sp::CRS("+init=epsg:4326")@projargs
  > plot(s, col = s$a, axes = TRUE)
  > plot(s, col = s$a, lty = s$a, lwd = s$a, pch = s$a, type = 'b')
  > l4 = st_linestring(matrix(runif(6),,2))
  > plot(st_sf(a=1,b=st_sfc(l4)), add = TRUE)
  > # plot multilinestrings:
  > ml1 = st_multilinestring(list(l1, l2))
  > ml2 = st_multilinestring(list(l3, l4))
  > ml = st_sf(a = 2:3, b = st_sfc(ml1, ml2))
  > plot(ml, col = ml$a, lty = ml$a, lwd = ml$a, pch = ml$a, type = 'b')
  > # plot points:
  > p1 = st_point(c(1,2))
  > p2 = st_point(c(3,3))
  > p3 = st_point(c(3,0))
  > p = st_sf(a=2:4, b=st_sfc(p1,p2,p3))
  > plot(p, col = s$a, axes = TRUE)
  > plot(p, col = s$a)
  > plot(p, col = p$a, pch = p$a, cex = p$a, bg = s$a, lwd = 2, lty = 2, type = 'b')
  > p4 = st_point(c(2,2))
  > plot(st_sf(a=1, st_sfc(p4)), add = TRUE)
  > # multipoints:
  > mp1 = st_multipoint(matrix(1:4,2))
  > mp2 = st_multipoint(matrix(5:8,2))
  > mp = st_sf(a = 2:3, b = st_sfc(mp1, mp2))
  > plot(mp)
  > plot(mp, col = mp$a, pch = mp$a, cex = mp$a, bg = mp$a, lwd = mp$a, lty = mp$a, type = 'b')
  > # polygon:
  > 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)
  > pl1 = st_polygon(list(outer, hole1, hole2))
  > pl2 = st_polygon(list(outer+10, hole1+10, hole2+10))
  > po = st_sf(a = 2:3, st_sfc(pl1,pl2))
  > plot(po, col = po$a, border = rev(po$a), lwd=3)
  > # multipolygon
  > r10 = matrix(rep(c(0,10),each=5),5)
  > pl1 = list(outer, hole1, hole2)
  > pl2 = list(outer+10, hole1+10, hole2+10)
  > pl3 = list(outer+r10, hole1+r10, hole2+r10)
  > mpo1 = st_multipolygon(list(pl1,pl2))
  > mpo2 = st_multipolygon(list(pl3))
  > mpo = st_sf(a=2:3, b=st_sfc(mpo1,mpo2))
  > plot(mpo, col = mpo$a, border = rev(mpo$a), lwd = 2)
  > # geometrycollection:
  > gc1 = st_geometrycollection(list(mpo1, st_point(c(21,21)), l1 * 2 + 21))
  > gc2 = st_geometrycollection(list(mpo2, l2 - 2, l3 - 2, st_point(c(-1,-1))))
  > gc = st_sf(a=2:3, b = st_sfc(gc1,gc2))
  > plot(gc, cex = gc$a, col = gc$a, border = rev(gc$a) + 2, lwd = 2)
  > 
  > plot(gc1)
  > 
  > plot(st_sfc(mp1, mpo1))
  > 
  > # color ramp
  > nc = st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
  > plot(nc)
  Warning message:
  plotting the first 10 out of 14 attributes; use max.plot = 14 to plot all 
  > plot(nc, axes = TRUE)
  Warning message:
  plotting the first 10 out of 14 attributes; use max.plot = 14 to plot all 
  > plot(nc, col="lightgrey") 
  Warning message:
  plotting the first 10 out of 14 attributes; use max.plot = 14 to plot all 
  > nc %>% 
  +   select(geometry) %>% 
  +   plot()
  Error in select.sf(., geometry) : 
    requires dplyr > 0.5.0: install that first, then reinstall sf
  Calls: %>% ... _fseq -> freduce -> <Anonymous> -> select -> select.sf
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > suppressPackageStartupMessages(library(sf))
  > 
  > test_check("sf")
  Reading layer `nc.gpkg' from data source `/home/ripley/R/Lib32/sf/gpkg/nc.gpkg' using driver `GPKG'
  converted into: MULTIPOLYGON
  Simple feature collection with 100 features and 14 fields
  Attribute-geometry relationship: 0 constant, 8 aggregate, 6 identity
  geometry type:  MULTIPOLYGON
  dimension:      XY
  bbox:           xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  epsg (SRID):    4267
  proj4string:    +proj=longlat +datum=NAD27 +no_defs
  Cannot open layer foo
  OGR: Unsupported geometry type
  1. Error: select  (@test_tidy.R#7) ---------------------------------------------
  requires dplyr > 0.5.0: install that first, then reinstall sf
  1: expect_true(nc %>% select_("AREA", attr(., "sf_column")) %>% inherits("sf")) at testthat/test_tidy.R:7
  2: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.", lab), info = info)
  3: as.expectation(exp, ..., srcref = srcref)
  4: identical(as.vector(object), TRUE)
  5: as.vector(object)
  6: nc %>% select_("AREA", attr(., "sf_column")) %>% inherits("sf")
  7: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  8: eval(quote(`_fseq`(`_lhs`)), env, env)
  9: eval(quote(`_fseq`(`_lhs`)), env, env)
  10: `_fseq`(`_lhs`)
  11: freduce(value, `_function_list`)
  12: function_list[[i]](value)
  13: select_(., "AREA", attr(., "sf_column"))
  14: select_.sf(., "AREA", attr(., "sf_column"))
  15: NextMethod()
  16: select_.data.frame(., "AREA", attr(., "sf_column"))
  17: select(.data, !(!(!dots)))
  18: select.sf(.data, !(!(!dots)))
  19: stop("requires dplyr > 0.5.0: install that first, then reinstall sf")
  
  bna 
  csv 
  geojson 
  gml 
  gpkg 
  gxt 
  jml 
  shp 
  sqlite 
  vdv 
  xlsx 
  .nc 
  driver `foo' not available.
  Dataset /home/ripley/R/packages/tests32/sf.Rcheck/tests/testthat/x.gpkg already exists: remove first, use update=TRUE to append,
  delete_layer=TRUE to delete layer, or delete_dsn=TRUE to remove the entire data source before writing.
  Creating layer . failed.
  Failed to create feature 1 in x
  Failed to create feature 1 in x
  testthat results ================================================================
  OK: 454 SKIPPED: 9 FAILED: 1
  1. Error: select  (@test_tidy.R#7) 
  
  Error: testthat unit tests failed
  Execution halted