Running ‘cast.R’ [14s/14s]
  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’ [17s/17s]
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’ [15s/15s]
  Running ‘empty.R’
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’ [15s/15s]
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ...91c91
< GDAL has 63 drivers
---
> GDAL has 75 drivers
  Running ‘geos.R’ [52s/52s]
  Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ... OK
  Running ‘graticule.R’ [22s/22s]
  Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
  Running ‘grid.R’ [16s/16s]
  Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
  Running ‘plot.R’ [22s/22s]
  Running ‘read.R’ [16s/16s]
  Running ‘roundtrip.R’ [57s/57s]
  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’ [25s/25s]
  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" 
690,691c690,691
< MULTIPOINT(0.0914728223831465 0, 0.073852008753...
< MULTIPOINT(0.048822235690146 1, 0.0716507713927...
---
> MULTIPOINT(0.0914728223831462 0, 0.073852008753...
> MULTIPOINT(0.0488222356901458 1, 0.071650771392...
  Running ‘sfg.R’
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘testthat.R’ [49s/305s]
  Running ‘wkb.R’ [10s/10s]
  Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ...53c53
< [1] "00000000040000000300000000013ff00000000000004010000000000000000000000140000000000000004014000000000000000000000140080000000000004018000000000000"
---
> [1] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
55,56c55,56
< [1] "000000000100000000000000003ff0000000000000"                                                                                                      
< [2] "00000000040000000300000000013ff00000000000004010000000000000000000000140000000000000004014000000000000000000000140080000000000004018000000000000"
---
> [1] "01010000000000000000000000000000000000f03f"                                                                                                      
> [2] "0104000000030000000101000000000000000000f03f0000000000001040010100000000000000000000400000000000001440010100000000000000000008400000000000001840"
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/read.R’ failed.
Complete output:
  > Sys.setenv(TZ="UTC")
  > 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 && Sys.info()['sysname'] != "Darwin") {
  + 	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        3     25
  5  other_relations Geometry Collection        0      4
  Simple feature collection with 3 features and 25 fields
  geometry type:  MULTIPOLYGON
  dimension:      XY
  bbox:           xmin: -1.556254 ymin: 53.79519 xmax: -1.550716 ymax: 53.80341
  epsg (SRID):    4326
  proj4string:    +proj=longlat +datum=WGS84 +no_defs
    osm_id osm_way_id name type aeroway amenity admin_level barrier boundary
  1   <NA>  263958111 <NA> <NA>    <NA>    <NA>        <NA>    <NA>     <NA>
  2   <NA>  301461256 <NA> <NA>    <NA>    <NA>        <NA>    <NA>     <NA>
  3   <NA>  462227487 <NA> <NA>    <NA>    <NA>        <NA>    <NA>     <NA>
    building craft geological historic land_area landuse leisure man_made
  1     <NA>  <NA>       <NA>     <NA>      <NA>    <NA>    park     <NA>
  2     <NA>  <NA>       <NA>     <NA>      <NA>    <NA>    park     <NA>
  3     <NA>  <NA>       <NA>     <NA>      <NA>    <NA>    park     <NA>
    military natural office place shop sport tourism other_tags
  1     <NA>    <NA>   <NA>  <NA> <NA>  <NA>    <NA>       <NA>
  2     <NA>    <NA>   <NA>  <NA> <NA>  <NA>    <NA>       <NA>
  3     <NA>    <NA>   <NA>  <NA> <NA>  <NA>    <NA>       <NA>
                          geometry
  1 MULTIPOLYGON(((-1.5507185 5...
  2 MULTIPOLYGON(((-1.5557631 5...
  3 MULTIPOLYGON(((-1.551502 53...
  > 
  > # layer opening option:
  > st_read(system.file("shape/nc.shp", package="sf"),  quiet = TRUE,
  + 	options = c("ADJUST_TYPE=YES", "ENCODING=CPL_ENC_UTF8"))
  Simple feature collection with 100 features and 14 fields
  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
  First 20 features:
      AREA PERIMETER CNTY_ CNTY_ID        NAME  FIPS FIPSNO CRESS_ID BIR74 SID74
  1  0.114     1.442  1825    1825        Ashe 37009  37009        5  1091     1
  2  0.061     1.231  1827    1827   Alleghany 37005  37005        3   487     0
  3  0.143     1.630  1828    1828       Surry 37171  37171       86  3188     5
  4  0.070     2.968  1831    1831   Currituck 37053  37053       27   508     1
  5  0.153     2.206  1832    1832 Northampton 37131  37131       66  1421     9
  6  0.097     1.670  1833    1833    Hertford 37091  37091       46  1452     7
  7  0.062     1.547  1834    1834      Camden 37029  37029       15   286     0
  8  0.091     1.284  1835    1835       Gates 37073  37073       37   420     0
  9  0.118     1.421  1836    1836      Warren 37185  37185       93   968     4
  10 0.124     1.428  1837    1837      Stokes 37169  37169       85  1612     1
  11 0.114     1.352  1838    1838     Caswell 37033  37033       17  1035     2
  12 0.153     1.616  1839    1839  Rockingham 37157  37157       79  4449    16
  13 0.143     1.663  1840    1840   Granville 37077  37077       39  1671     4
  14 0.109     1.325  1841    1841      Person 37145  37145       73  1556     4
  15 0.072     1.085  1842    1842       Vance 37181  37181       91  2180     4
  16 0.190     2.204  1846    1846     Halifax 37083  37083       42  3608    18
  17 0.053     1.171  1848    1848  Pasquotank 37139  37139       70  1638     3
  18 0.199     1.984  1874    1874      Wilkes 37193  37193       97  3146     4
  19 0.081     1.288  1880    1880     Watauga 37189  37189       95  1323     1
  20 0.063     1.000  1881    1881  Perquimans 37143  37143       72   484     1
     NWBIR74 BIR79 SID79 NWBIR79                       geometry
  1       10  1364     0      19 MULTIPOLYGON(((-81.47275543...
  2       10   542     3      12 MULTIPOLYGON(((-81.23989105...
  3      208  3616     6     260 MULTIPOLYGON(((-80.45634460...
  4      123   830     2     145 MULTIPOLYGON(((-76.00897216...
  5     1066  1606     3    1197 MULTIPOLYGON(((-77.21766662...
  6      954  1838     5    1237 MULTIPOLYGON(((-76.74506378...
  7      115   350     2     139 MULTIPOLYGON(((-76.00897216...
  8      254   594     2     371 MULTIPOLYGON(((-76.56250762...
  9      748  1190     2     844 MULTIPOLYGON(((-78.30876159...
  10     160  2038     5     176 MULTIPOLYGON(((-80.02567291...
  11     550  1253     2     597 MULTIPOLYGON(((-79.53050994...
  12    1243  5386     5    1369 MULTIPOLYGON(((-79.53050994...
  13     930  2074     4    1058 MULTIPOLYGON(((-78.74912261...
  14     613  1790     4     650 MULTIPOLYGON(((-78.80680084...
  15    1179  2753     6    1492 MULTIPOLYGON(((-78.49252319...
  16    2365  4463    17    2980 MULTIPOLYGON(((-77.33220672...
  17     622  2275     4     933 MULTIPOLYGON(((-76.29892730...
  18     200  3725     7     222 MULTIPOLYGON(((-81.02056884...
  19      17  1775     1      33 MULTIPOLYGON(((-81.80622100...
  20     230   676     0     310 MULTIPOLYGON(((-76.48052978...
  > 
  > x <- st_sf(a = 1:2, geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2))))
  > 
  > try(st_layers("foo")) # cannot open datasource
  Cannot open data source foo
  Error in CPL_get_layers(dsn, options, do_count) : Open failed.
  
  > try(st_read("foo")) # cannot open datasource
  Cannot open data source foo
  Error in CPL_read_ogr(dsn, layer, as.character(options), quiet, type,  : 
    Open failed.
  
  > try(st_read("x.gpkg", "xyz")) # cannot open layer
  Cannot open data source x.gpkg
  Error in CPL_read_ogr(dsn, layer, as.character(options), quiet, type,  : 
    Open failed.
  
  > try(st_write(c("foo", "bar")))
  Error : inherits(obj, "sf") is not TRUE
  > try(st_write(x, c("foo", "bar")))
  Error : length(dsn) == 1 is not TRUE
  In addition: Warning message:
  In if (file.exists(dsn)) dsn = normalizePath(dsn) :
    the condition has length > 1 and only the first element will be used
  > try(st_write(x, "foo", driver = "foo"))
  driver `foo' not available.
  Error in CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  : 
    Driver not available.
  
  > if (Sys.getenv("USER") == "travis") {
  + 	try(st_write(x, "/x", driver = "ESRI Shapefile"))
  + }
  > 
  > df <- data.frame(
  +     a = c(0, 1, NA, -Inf, Inf),
  +     b = c("a", "b", NA, "c", ""),
  +     c = c(as.Date("2001-01-01"), NA, -99, 0, 1),
  +     d = c(as.POSIXct("2001-01-01"), NA, -99, 0, 1),
  +     x = 1:5,
  +     y = 1:5)
  > 
  > x  = st_as_sf(df, coords = c("x", "y"))
  > 
  > if ("GPKG" %in% st_drivers()$name) {
  +  st_write(x, "x2.gpkg", quiet = TRUE)
  +  y = st_read("x2.gpkg", quiet = TRUE)
  +  print(y)
  + }
  Simple feature collection with 5 features and 4 fields
  geometry type:  POINT
  dimension:      XY
  bbox:           xmin: 1 ymin: 1 xmax: 5 ymax: 5
  epsg (SRID):    NA
  proj4string:    NA
       a    b          c                   d       geom
  1    0    a 2001-01-01 2001-01-01 00:00:00 POINT(1 1)
  2    1    b       <NA>                <NA> POINT(2 2)
  3   NA <NA> 1969-09-24 1969-12-31 23:58:21 POINT(3 3)
  4 -Inf    c 1970-01-01 1970-01-01 00:00:00 POINT(4 4)
  5  Inf      1970-01-02 1970-01-01 00:00:01 POINT(5 5)
  Warning messages:
  1: In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  :
    GDAL Error 6: Years < -32768 or > 32767 are not supported
  2: In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  :
    GDAL Error 6: Years < -32768 or > 32767 are not supported
  > 
  > if ("SQLite" %in% st_drivers()$name && require(RSQLite)) {
  + 	db = system.file("sqlite/meuse.sqlite", package = "sf")
  + 	dbcon <- dbConnect(dbDriver("SQLite"), db)
  + 	m = dbReadTable(dbcon, "meuse.sqlite")
  + 	m$GEOMETRY = st_as_sfc(m$GEOMETRY, spatialite = FALSE) # ISO wkb
  + 	print(st_sf(m), n = 3)
  + 
  + 	db = system.file("sqlite/nc.sqlite", package = "sf")
  + 	dbcon <- dbConnect(dbDriver("SQLite"), db)
  + 	m = dbReadTable(dbcon, "nc.sqlite")
  + 	m$GEOMETRY = st_as_sfc(m$GEOMETRY, spatialite = FALSE) # ISO wkb
  + 	print(st_sf(m), n = 3)
  + 
  + 	db = system.file("sqlite/test3.sqlite", package = "sf")
  + 	dbcon <- dbConnect(dbDriver("SQLite"), db)
  + 	m = dbReadTable(dbcon, "HighWays")
  + 	m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
  + 	print(st_sf(m), n = 3)
  + 	m = dbReadTable(dbcon, "Towns")
  + 	m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
  + 	print(st_sf(m), n = 3)
  + 	m = dbReadTable(dbcon, "Regions")
  + 	m$Geometry = st_as_sfc(m$Geometry, spatialite = TRUE) # spatialite wkb
  + 	print(st_sf(m), n = 3)
  + }
  Loading required package: RSQLite
  Simple feature collection with 155 features and 13 fields
  geometry type:  POINT
  dimension:      XY
  bbox:           xmin: 178605 ymin: 329714 xmax: 181390 ymax: 333611
  epsg (SRID):    NA
  proj4string:    NA
  First 3 features:
    ogc_fid cadmium copper lead zinc  elev       dist   om ffreq soil lime
  1       1    11.7     85  299 1022 7.909 0.00135803 13.6     1    1    1
  2       2     8.6     81  277 1141 6.983 0.01222430 14.0     1    1    1
  3       3     6.5     68  199  640 7.800 0.10302900 13.0     1    1    1
    landuse dist.m             GEOMETRY
  1      Ah     50 POINT(181072 333611)
  2      Ah     30 POINT(181025 333558)
  3      Ah    150 POINT(181165 333537)
  Simple feature collection with 100 features and 15 fields
  geometry type:  MULTIPOLYGON
  dimension:      XY
  bbox:           xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  epsg (SRID):    NA
  proj4string:    NA
  First 3 features:
    ogc_fid  area perimeter cnty_ cnty_id      name  fips fipsno cress_id bir74
  1       1 0.114     1.442  1825    1825      Ashe 37009  37009        5  1091
  2       2 0.061     1.231  1827    1827 Alleghany 37005  37005        3   487
  3       3 0.143     1.630  1828    1828     Surry 37171  37171       86  3188
    sid74 nwbir74 bir79 sid79 nwbir79                       GEOMETRY
  1     1      10  1364     0      19 MULTIPOLYGON(((-81.47275543...
  2     0      10   542     3      12 MULTIPOLYGON(((-81.23989105...
  3     5     208  3616     6     260 MULTIPOLYGON(((-80.45634460...
  Error in CPL_read_wkb(x, EWKB, spatialite, endian = as.integer(.Platform$endian ==  : 
    reading non-native endian spatialite geometries not supported
  Calls: st_as_sfc ... st_as_sfc -> st_as_sfc.WKB -> CPL_read_wkb -> .Call
  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