Running ‘aggregate.R’ [1s/2s]
  Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.8.1, GDAL 3.0.4, PROJ 7.0.0
---
> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
  Running ‘cast.R’ [1s/2s]
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ... OK
  Running ‘crs.R’ [1s/2s]
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...53,55c53,55
< bbox:           xmin: 0 ymin: 0 xmax: 111319.5 ymax: 111325.1
< projected CRS:  WGS 84 / Pseudo-Mercator
< POINT (0 0)
---
> bbox:           xmin: 0 ymin: -7.081155e-10 xmax: 111319.5 ymax: 111325.1
> CRS:            EPSG:3857
> POINT (0 -7.081155e-10)
  Running ‘dist.R’ [1s/2s]
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ...54c54
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
  Running ‘dplyr.R’ [6s/9s]
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...73c73
< projected CRS:  WGS 84 / Pseudo-Mercator
---
> CRS:            EPSG:3857
77,80c77,80
< 1 (0,0.1]          0.0760 (((-8678517 4054264, -8679088 4061405, -8680136 40615…
< 2 (0.1,0.12]       0.112  (((-9383227 4192541, -9375980 4199500, -9370835 41966…
< 3 (0.12,0.1…       0.134  (((-8520830 4108031, -8522040 4111119, -8520104 41115…
< 4 (0.15,0.2…       0.190  (((-8685774 4073056, -8684147 4070879, -8683670 40671…
---
> 1 (0,0.1]          0.0760 (((-8678517 4054264, -8679088 4061405, -8680136 40615~
> 2 (0.1,0.12]       0.112  (((-9383227 4192541, -9375980 4199500, -9370835 41966~
> 3 (0.12,0.1~       0.134  (((-8520830 4108031, -8522040 4111119, -8520104 41115~
> 4 (0.15,0.2~       0.190  (((-8532272 4151181, -8529886 4149052, -8543756 41433~
105c105
< projected CRS:  WGS 84 / Pseudo-Mercator
---
> CRS:            EPSG:3857
109,114c109,114
< 1    95 (((-8588146 4131923, -8589850 4133303, -8589356 4135198, -8… SID79     4
< 2    96 (((-8711999 4081959, -8719511 4077863, -8731642 4078864, -8… SID79     5
< 3    97 (((-8685774 4073056, -8697387 4077823, -8700120 4077570, -8… SID79     3
< 4    98 (((-8755885 4021935, -8802506 4069795, -8798771 4071779, -8… SID79    17
< 5    99 (((-8678517 4054264, -8679088 4061405, -8680136 4061550, -8… SID79     9
< 6   100 (((-8755885 4021935, -8753548 4025868, -8753052 4030195, -8… SID79     6
---
> 1    95 (((-8588146 4131923, -8589850 4133303, -8589356 4135198, -8~ SID79     4
> 2    96 (((-8711999 4081959, -8719511 4077863, -8731642 4078864, -8~ SID79     5
> 3    97 (((-8685774 4073056, -8697387 4077823, -8700120 4077570, -8~ SID79     3
> 4    98 (((-8755885 4021935, -8802506 4069795, -8798771 4071779, -8~ SID79    17
> 5    99 (((-8678517 4054264, -8679088 4061405, -8680136 4061550, -8~ SID79     9
> 6   100 (((-8755885 4021935, -8753548 4025868, -8753052 4030195, -8~ SID79     6
120c120
< projected CRS:  WGS 84 / Pseudo-Mercator
---
> CRS:            EPSG:3857
124,129c124,129
< 1     1 (((-9069486 4332934, -9077066 4338201, -9079419 4338351, -9…     1     0
< 2     2 (((-9043562 4351030, -9043652 4352973, -9046117 4356516, -9…     0     3
< 3     3 (((-8956335 4334068, -8958566 4335747, -8965300 4336025, -8…     5     6
< 4     4 (((-8461241 4344709, -8462173 4347214, -8463902 4346972, -8…     1     2
< 5     5 (((-8595797 4333852, -8597683 4330212, -8604808 4329788, -8…     9     3
< 6     6 (((-8543185 4332878, -8569416 4332369, -8570981 4333107, -8…     7     5
---
> 1     1 (((-9069486 4332934, -9077066 4338201, -9079419 4338351, -9~     1     0
> 2     2 (((-9043562 4351030, -9043652 4352973, -9046117 4356516, -9~     0     3
> 3     3 (((-8956335 4334068, -8958566 4335747, -8965300 4336025, -8~     5     6
> 4     4 (((-8461241 4344709, -8462173 4347214, -8463902 4346972, -8~     1     2
> 5     5 (((-8595797 4333852, -8597683 4330212, -8604808 4329788, -8~     9     3
> 6     6 (((-8543185 4332878, -8569416 4332369, -8570981 4333107, -8~     7     5
135c135
< projected CRS:  WGS 84 / Pseudo-Mercator
---
> CRS:            EPSG:3857
139,144c139,144
< 1 (((-9069486 4332934, -9077066 4338201, -9079419 4338351, -9…     1     1     0
< 2 (((-9043562 4351030, -9043652 4352973, -9046117 4356516, -9…     2     0     3
< 3 (((-8956335 4334068, -8958566 4335747, -8965300 4336025, -8…     3     5     6
< 4 (((-8461241 4344709, -8462173 4347214, -8463902 4346972, -8…     4     1     2
< 5 (((-8595797 4333852, -8597683 4330212, -8604808 4329788, -8…     5     9     3
< 6 (((-8543185 4332878, -8569416 4332369, -8570981 4333107, -8…     6     7     5
---
> 1 (((-9069486 4332934, -9077066 4338201, -9079419 4338351, -9~     1     1     0
> 2 (((-9043562 4351030, -9043652 4352973, -9046117 4356516, -9~     2     0     3
> 3 (((-8956335 4334068, -8958566 4335747, -8965300 4336025, -8~     3     5     6
> 4 (((-8461241 4344709, -8462173 4347214, -8463902 4346972, -8~     4     1     2
> 5 (((-8595797 4333852, -8597683 4330212, -8604808 4329788, -8~     5     9     3
> 6 (((-8543185 4332878, -8569416 4332369, -8570981 4333107, -8~     6     7     5
153,155c153,155
< bbox:           xmin: 0 ymin: 0 xmax: 111319.5 ymax: 111325.1
< projected CRS:  WGS 84 / Pseudo-Mercator
< POINT (0 0)
---
> bbox:           xmin: 0 ymin: -7.081155e-10 xmax: 111319.5 ymax: 111325.1
> CRS:            EPSG:3857
> POINT (0 -7.081155e-10)
179c179
< projected CRS:  NAD83 / North Carolina
---
> CRS:            EPSG:32119
183c183
< 1 2.593234e-06 (((705429.2 49248.34, 705861.5 27435.66, 698897.7 18679.88, 6485…
---
> 1 2.593234e-06 (((834893.7 95747.49, 833834.2 98254.6, 835420.2 98655.72, 84006~
189c189
< projected CRS:  NAD83 / North Carolina
---
> CRS:            EPSG:32119
193c193
< 1     2.589362e-06 (((724644.4 62316.58, 714305.9 49733.25, 711692 35996.55, 70…
---
> 1     2.589362e-06 (((834893.7 95747.49, 833834.2 98254.6, 835420.2 98655.72, 8~
201c201
< projected CRS:  NAD83 / North Carolina
---
> CRS:            EPSG:32119
205c205
< 1             329962 (((705429.2 49248.34, 705861.5 27435.66, 698897.7 18679.88…
---
> 1             329962 (((834893.7 95747.49, 833834.2 98254.6, 835420.2 98655.72,~
211c211
< projected CRS:  NAD83 / North Carolina
---
> CRS:            EPSG:32119
213c213
<   `sum(A * new_dens…                                                    geometry
---
>   `sum(A * new_dens~                                                    geometry
215c215
< 1             329962 (((724644.4 62316.58, 714305.9 49733.25, 711692 35996.55, …
---
> 1             329962 (((834893.7 95747.49, 833834.2 98254.6, 835420.2 98655.72,~
  Running ‘empty.R’ [1s/2s]
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’ [2s/3s]
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ...245c245
< [1,] 1760244967 0.114
---
> [1,] 1760244757 0.114
278c278
< Error : cannot convert km into °
---
> Error : cannot convert km into <b0>
285,287d284
< Warning message:
< In st_buffer.sfc(sfc, units::set_units(0.1, rad)) :
<   st_buffer does not correctly buffer longitude/latitude data
  Running ‘geos.R’ [8s/11s]
  Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ...85c85
< geographic CRS: NAD27
---
> CRS:            4267
560,573d559
< LINESTRING (3 3, 2 2, 1 1)
< Geometry set for 1 feature 
< geometry type:  LINESTRING
< dimension:      XY
< bbox:           xmin: 1 ymin: 1 xmax: 3 ymax: 3
< CRS:            NA
< LINESTRING (3 3, 2 2, 1 1)
< Simple feature collection with 1 feature and 1 field
< geometry type:  LINESTRING
< dimension:      XY
< bbox:           xmin: 1 ymin: 1 xmax: 3 ymax: 3
< CRS:            NA
<   a                       geom
< 1 2 LINESTRING (3 3, 2 2, 1 1)
  Running ‘graticule.R’ [3s/5s]
  Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
  Running ‘grid.R’ [2s/2s]
  Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
  Running ‘maps.R’ [3s/4s]
  Comparing ‘maps.Rout’ to ‘maps.Rout.save’ ...12c12
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
26c26
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
39c39
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
57c57
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
75c75
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
93c93
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
  Running ‘plot.R’ [9s/12s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’ [1s/2s]
  Running ‘roundtrip.R’ [7s/8s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ...98,100d97
< Warning message:
< In CPL_crs_from_input(x) :
<   GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
148c145
< Reading layer `nc.gpkg' from data source `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nc.gpkg' using driver `GPKG'
---
> Reading layer `nc.gpkg' from data source `D:\temp\Rtmp8qxg3B\RLIBS_1b15869f17642\sf\gpkg\nc.gpkg' using driver `GPKG'
153c150
< geographic CRS: NAD27
---
> CRS:            4267
156a154
> [3] "Component 15: Attributes: < Component \"crs\": Component \"input\": 1 string mismatch >"
  Running ‘sample.R’ [1s/2s]
  Comparing ‘sample.Rout’ to ‘sample.Rout.save’ ... OK
  Running ‘sfc.R’ [9s/13s]
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...161c161
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
335c335
< "3.8.1" "3.0.4" "7.0.0" 
---
> "3.6.1" "2.2.3" "4.9.3" 
469c469
<   User input: NAD27 
---
>   User input: 4267 
471,484c471,476
< GEOGCRS["NAD27",
<     DATUM["North American Datum 1927",
<         ELLIPSOID["Clarke 1866",6378206.4,294.978698213898,
<             LENGTHUNIT["metre",1]]],
<     PRIMEM["Greenwich",0,
<         ANGLEUNIT["degree",0.0174532925199433]],
<     CS[ellipsoidal,2],
<         AXIS["latitude",north,
<             ORDER[1],
<             ANGLEUNIT["degree",0.0174532925199433]],
<         AXIS["longitude",east,
<             ORDER[2],
<             ANGLEUNIT["degree",0.0174532925199433]],
<     ID["EPSG",4267]]
---
> GEOGCS["GCS_North_American_1927",
>     DATUM["North_American_Datum_1927",
>         SPHEROID["Clarke_1866",6378206.4,294.9786982]],
>     PRIMEM["Greenwich",0],
>     UNIT["Degree",0.017453292519943295],
>     AUTHORITY["EPSG","4267"]]
641c633
< Reading layer `nc' from data source `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp' using driver `ESRI Shapefile'
---
> Reading layer `nc' from data source `D:\temp\Rtmp8qxg3B\RLIBS_1b15869f17642\sf\shape\nc.shp' using driver `ESRI Shapefile'
646c638
< geographic CRS: NAD27
---
> CRS:            4267
658c650
< projected CRS:  NAD83 / North Carolina (ftUS)
---
> CRS:            EPSG:2264
692c684
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
718c710
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
739c731
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
775c767
< projected CRS:  NAD83 / North Carolina (ftUS)
---
> CRS:            EPSG:2264
790c782
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
946c938
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
954c946
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
969c961
< geographic CRS: WGS 84
---
> CRS:            4326
980c972
< geographic CRS: WGS 84
---
> CRS:            4326
992c984
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
1005c997
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
  Running ‘sfg.R’ [1s/2s]
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘spatstat.R’ [4s/6s]
  Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ...198c198
< Reading layer `nc.gpkg' from data source `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nc.gpkg' using driver `GPKG'
---
> Reading layer `nc.gpkg' from data source `D:\temp\Rtmp8qxg3B\RLIBS_1b15869f17642\sf\gpkg\nc.gpkg' using driver `GPKG'
203c203
< geographic CRS: NAD27
---
> CRS:            4267
  Running ‘stars.R’ [2s/4s]
  Comparing ‘stars.Rout’ to ‘stars.Rout.save’ ...107c107
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
118c118
< geographic CRS: WGS 84
---
> CRS:            EPSG:4326
125c125
< Reading layer `nc.gpkg' from data source `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nc.gpkg' using driver `GPKG'
---
> Reading layer `nc.gpkg' from data source `D:\temp\Rtmp8qxg3B\RLIBS_1b15869f17642\sf\gpkg\nc.gpkg' using driver `GPKG'
131c131
< geographic CRS: NAD27
---
> CRS:            4267
144,145c144,145
< x    1 461 -84.3239  0.0192484  NAD27 FALSE   NULL [x]
< y    1 141  36.5896 -0.0192484  NAD27 FALSE   NULL [y]
---
> x    1 461 -84.3239  0.0192484 GEOGCS["NAD27",DATUM["Nor... FALSE   NULL [x]
> y    1 141  36.5896 -0.0192484 GEOGCS["NAD27",DATUM["Nor... FALSE   NULL [y]
150c150
< geographic CRS: NAD27
---
> CRS:            GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982138982,AUTHORITY["EPSG","7008"]],AUTHORITY["EPSG","6267"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4267"]]
167c167
< geographic CRS: NAD27
---
> CRS:            GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982138982,AUTHORITY["EPSG","7008"]],AUTHORITY["EPSG","6267"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4267"]]
184c184
< geographic CRS: NAD27
---
> CRS:            GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982138982,AUTHORITY["EPSG","7008"]],AUTHORITY["EPSG","6267"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4267"]]
  Running ‘testthat.R’ [1s/2s]
  Comparing ‘testthat.Rout’ to ‘testthat.Rout.save’ ... OK
  Running ‘units.R’ [1s/2s]
  Comparing ‘units.Rout’ to ‘units.Rout.save’ ... OK
  Running ‘wkb.R’ [1s/2s]
  Comparing ‘wkb.Rout’ to ‘wkb.Rout.save’ ... OK
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"
  > 
  > # 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
  geographic CRS: WGS 84
    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.550719 5...
  2 MULTIPOLYGON (((-1.555763 5...
  3 MULTIPOLYGON (((-1.551502 5...
  > 
  > # 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
  geographic CRS: NAD27
  First 10 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
     NWBIR74 BIR79 SID79 NWBIR79                       geometry
  1       10  1364     0      19 MULTIPOLYGON (((-81.47276 3...
  2       10   542     3      12 MULTIPOLYGON (((-81.23989 3...
  3      208  3616     6     260 MULTIPOLYGON (((-80.45634 3...
  4      123   830     2     145 MULTIPOLYGON (((-76.00897 3...
  5     1066  1606     3    1197 MULTIPOLYGON (((-77.21767 3...
  6      954  1838     5    1237 MULTIPOLYGON (((-76.74506 3...
  7      115   350     2     139 MULTIPOLYGON (((-76.00897 3...
  8      254   594     2     371 MULTIPOLYGON (((-76.56251 3...
  9      748  1190     2     844 MULTIPOLYGON (((-78.30876 3...
  10     160  2038     5     176 MULTIPOLYGON (((-80.02567 3...
  > 
  > 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
  Error : Cannot open "foo"; The file doesn't seem to exist.
  > try(st_read("x.gpkg", "xyz")) # cannot open layer
  Error : Cannot open "x.gpkg"; The file doesn't seem to exist.
  > try(st_write(c("foo", "bar")))
  Error in UseMethod("st_write") : 
    no applicable method for 'st_write' applied to an object of class "character"
  > try(st_write(x, c("foo", "bar")))
  Error in guess_driver(dns) : length(dsn) == 1 is not TRUE
  > 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"))
  + 	st_write(x, "xxx.gpkg")
  + 	st_write(x, "xxx.gpkg", append = TRUE, quiet = FALSE) # appends to layer
  + 	y <- st_sf(b = 1:2, geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2))))
  + 	try(st_write(y, "xxx.gpkg"))
  + }
  > 
  > geom = st_sfc(st_point(0:1), st_multipoint(matrix(1:4,2,2)))
  > st_write(geom, "geom.gpkg")
  Writing layer `geom' to data source `geom.gpkg' using driver `GPKG'
  Writing 2 features with 0 fields and geometry type Unknown (any).
  > st_write(geom, "geom1.gpkg", layer = "foo")
  Writing layer `foo' to data source `geom1.gpkg' using driver `GPKG'
  Writing 2 features with 0 fields and geometry type Unknown (any).
  > 
  > 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)
  Error in as.Date.numeric(e) : 'origin' must be supplied
  Calls: data.frame ... unlist -> lapply -> FUN -> as.Date -> as.Date.numeric
  Execution halted