Running ‘aggregate.R’ [2s/3s]
  Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE
---
> Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.0; sf_use_s2() is TRUE
  Running ‘cast.R’ [3s/4s]
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ... OK
  Running ‘crs.R’ [2s/4s]
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...81c81,117
<  
---
> GEOGCRS["WGS 84",
>     ENSEMBLE["World Geodetic System 1984 ensemble",
>         MEMBER["World Geodetic System 1984 (Transit)",
>             ID["EPSG",1166]],
>         MEMBER["World Geodetic System 1984 (G730)",
>             ID["EPSG",1152]],
>         MEMBER["World Geodetic System 1984 (G873)",
>             ID["EPSG",1153]],
>         MEMBER["World Geodetic System 1984 (G1150)",
>             ID["EPSG",1154]],
>         MEMBER["World Geodetic System 1984 (G1674)",
>             ID["EPSG",1155]],
>         MEMBER["World Geodetic System 1984 (G1762)",
>             ID["EPSG",1156]],
>         MEMBER["World Geodetic System 1984 (G2139)",
>             ID["EPSG",1309]],
>         ELLIPSOID["WGS 84",6378137,298.257223563,
>             LENGTHUNIT["metre",1],
>             ID["EPSG",7030]],
>         ENSEMBLEACCURACY[2.0],
>         ID["EPSG",6326]],
>     PRIMEM["Greenwich",0,
>         ANGLEUNIT["degree",0.0174532925199433],
>         ID["EPSG",8901]],
>     CS[ellipsoidal,2],
>         AXIS["longitude",east,
>             ORDER[1],
>             ANGLEUNIT["degree",0.0174532925199433,
>                 ID["EPSG",9122]]],
>         AXIS["latitude",north,
>             ORDER[2],
>             ANGLEUNIT["degree",0.0174532925199433,
>                 ID["EPSG",9122]]],
>     USAGE[
>         SCOPE["unknown"],
>         AREA["World."],
>         BBOX[-90,-180,90,180]]] 
83c119
<   User input: +init=epsg:4326 
---
>   User input: WGS 84 
148,150d183
< 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.
  Running ‘dist.R’ [2s/3s]
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’ [5s/7s]
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ... OK
  Running ‘empty.R’ [2s/3s]
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’ [3s/4s]
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ...241,245c241,245
< [1,] 1760230516 0.114
< [2,]  946417787 0.061
< [3,] 2202223078 0.143
< [4,] 1074332698 0.070
< [5,] 2352528086 0.153
---
> [1,] 1760244967 0.114
> [2,]  946435667 0.061
> [3,] 2202248253 0.143
> [4,] 1074351919 0.070
> [5,] 2352539533 0.153
  Running ‘geos.R’ [20s/33s]
  Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ...13,22c13,22
<  [1,]      0.00      0.00  25651.99 440561.48 299772.34 361529.73 419671.66
<  [2,]      0.00      0.00      0.00 409429.44 268945.05 332590.52 388545.58
<  [3,]  25651.99      0.00      0.00 367556.52 227018.38 290298.04 346669.14
<  [4,] 440561.48 409429.44 367556.52      0.00  67226.86  45537.62      0.00
<  [5,] 299772.34 268945.05 227018.38  67226.86      0.00      0.00  46527.56
<  [6,] 361529.73 332590.52 290298.04  45537.62      0.00      0.00  30213.17
<  [7,] 419671.66 388545.58 346669.14      0.00  46527.56  30213.17      0.00
<  [8,] 384593.29 354295.06 312351.76  16130.19  11926.86      0.00      0.00
<  [9,] 262353.97 231217.73 189310.73 140455.97      0.00  64606.27 119564.00
< [10,]  71138.53  41943.71      0.00 330752.58 190183.42 252373.26 309863.33
---
>  [1,]      0.00      0.00  25652.53 440561.15 299772.18 361529.53 419671.2
>  [2,]      0.00      0.00      0.00 409428.54 268944.31 332589.77 388544.5
>  [3,]  25652.53      0.00      0.00 367555.48 227017.51 290297.10 346667.9
>  [4,] 440561.15 409428.54 367555.48      0.00  67226.86  45537.55      0.0
>  [5,] 299772.18 268944.31 227017.51  67226.86      0.00      0.00  46527.4
>  [6,] 361529.53 332589.77 290297.10  45537.55      0.00      0.00  30213.0
>  [7,] 419671.16 388544.52 346667.93      0.00  46527.40  30213.00      0.0
>  [8,] 384592.90 354294.11 312350.68  16130.34  11926.81      0.00      0.0
>  [9,] 262354.29 231217.49 189310.35 140455.87      0.00  64606.24 119563.7
> [10,]  71139.29  41943.83      0.00 330751.39 190182.39 252372.06 309862.0
24,33c24,33
<  [1,] 384593.29 262353.97  71138.53
<  [2,] 354295.06 231217.73  41943.71
<  [3,] 312351.76 189310.73      0.00
<  [4,]  16130.19 140455.97 330752.58
<  [5,]  11926.86      0.00 190183.42
<  [6,]      0.00  64606.27 252373.26
<  [7,]      0.00 119564.00 309863.33
<  [8,]      0.00  85533.33 275391.07
<  [9,]  85533.33      0.00 152489.45
< [10,] 275391.07 152489.45      0.00
---
>  [1,] 384592.90 262354.29  71139.29
>  [2,] 354294.11 231217.49  41943.83
>  [3,] 312350.68 189310.35      0.00
>  [4,]  16130.34 140455.87 330751.39
>  [5,]  11926.81      0.00 190182.39
>  [6,]      0.00  64606.24 252372.06
>  [7,]      0.00 119563.73 309861.97
>  [8,]      0.00  85533.12 275389.78
>  [9,]  85533.12      0.00 152488.92
> [10,] 275389.78 152488.92      0.00
147c147
< > if (isTRUE(try(compareVersion(sf_extSoftVersion()["GEOS"], "3.5.0") > -1, silent = TRUE))) {
---
> > if (compareVersion(sf_extSoftVersion()["GEOS"], "3.5.0") > -1) {
552c552
< > if (isTRUE(try(compareVersion(sf_extSoftVersion()["GEOS"], "3.7.0") > -1, silent = TRUE))) {
---
> > if (compareVersion(sf_extSoftVersion()["GEOS"], "3.7.0") > -1) {
  Running ‘graticule.R’ [4s/6s]
  Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
  Running ‘grid.R’ [3s/5s]
  Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
  Running ‘maps.R’ [3s/6s]
  Comparing ‘maps.Rout’ to ‘maps.Rout.save’ ... OK
  Running ‘plot.R’ [10s/15s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’ [2s/4s]
  Running ‘roundtrip.R’ [3s/5s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ... OK
  Running ‘s2.R’ [3s/5s]
  Comparing ‘s2.Rout’ to ‘s2.Rout.save’ ...4c4
< Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE
---
> Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.0; sf_use_s2() is TRUE
  Running ‘sample.R’ [2s/3s]
  Comparing ‘sample.Rout’ to ‘sample.Rout.save’ ... OK
  Running ‘sfc.R’ [17s/26s]
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...335c335
< "3.11.0"  "3.5.3"  "9.1.0" 
---
> "3.10.2"  "3.4.3"  "8.2.0" 
616c616
< Bounding box:  xmin: 406265 ymin: 48359.7 xmax: 3052877 ymax: 1044143
---
> Bounding box:  xmin: 406262.2 ymin: 48374.87 xmax: 3052887 ymax: 1044158
631,640c631,640
< 1       10  1364     0      19  A  4 #fb80724d MULTIPOLYGON (((1270813 913...
< 2       10   542     3      12  A  4 #fb80724d MULTIPOLYGON (((1340553 959...
< 3      208  3616     6     260  A  5 #80b1d34d MULTIPOLYGON (((1570586 910...
< 4      123   830     2     145  A 10 #bc80bd4d MULTIPOLYGON (((2881206 948...
< 5     1066  1606     3    1197  A  8 #fccde54d MULTIPOLYGON (((2525700 911...
< 6      954  1838     5    1237  A  9 #d9d9d94d MULTIPOLYGON (((2665112 911...
< 7      115   350     2     139  A 10 #bc80bd4d MULTIPOLYGON (((2881206 948...
< 8      254   594     2     371  A  9 #d9d9d94d MULTIPOLYGON (((2717988 951...
< 9      748  1190     2     844  A  8 #fccde54d MULTIPOLYGON (((2203888 914...
< 10     160  2038     5     176  A  5 #80b1d34d MULTIPOLYGON (((1697618 911...
---
> 1       10  1364     0      19  A  4 #fb80724d MULTIPOLYGON (((1270814 913...
> 2       10   542     3      12  A  4 #fb80724d MULTIPOLYGON (((1340555 959...
> 3      208  3616     6     260  A  5 #80b1d34d MULTIPOLYGON (((1570591 910...
> 4      123   830     2     145  A 10 #bc80bd4d MULTIPOLYGON (((2881208 948...
> 5     1066  1606     3    1197  A  8 #fccde54d MULTIPOLYGON (((2525701 911...
> 6      954  1838     5    1237  A  9 #d9d9d94d MULTIPOLYGON (((2665113 911...
> 7      115   350     2     139  A 10 #bc80bd4d MULTIPOLYGON (((2881208 948...
> 8      254   594     2     371  A  9 #d9d9d94d MULTIPOLYGON (((2717989 951...
> 9      748  1190     2     844  A  8 #fccde54d MULTIPOLYGON (((2203890 914...
> 10     160  2038     5     176  A  5 #80b1d34d MULTIPOLYGON (((1697624 911...
723c723
< Bounding box:  xmin: 1216510 ymin: 935852 xmax: 1428880 ymax: 1031490
---
> Bounding box:  xmin: 1216510 ymin: 935867 xmax: 1428880 ymax: 1031510
726,730c726,730
< POINT (1264558 935852)
< POINT (1256623 949369)
< POINT (1222665 972624)
< POINT (1333528 968263)
< POINT (1310837 958630)
---
> POINT (1264558 935867)
> POINT (1256623 949384)
> POINT (1222665 972639)
> POINT (1333530 968278)
> POINT (1310838 958645)
738c738
< Bounding box:  xmin: -81.6893 ymin: 36.2491 xmax: -80.914 ymax: 36.5726
---
> Bounding box:  xmin: -81.6893 ymin: 36.2492 xmax: -80.914 ymax: 36.5726
741c741
< MULTIPOINT ((-81.2629 36.4076), (-81.1375 36.56...
---
> MULTIPOINT ((-81.2629 36.4076), (-81.1374 36.56...
822a823,826
> Warning messages:
> 1: no function found corresponding to methods exports from 'raster' for: 'area' 
> 2: In showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
>   Discarded datum Amersfoort in Proj4 definition
  Running ‘sfg.R’ [2s/2s]
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘spatstat.R’ [5s/8s]
  Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ...113,114c113,114
< spatstat.geom 3.0-3
< spatstat.random 3.0-1
---
> spatstat.geom 2.4-0
> spatstat.random 2.2-0
118c118
< Bounding box:  xmin: 123829.8 ymin: 14740.06 xmax: 930518.6 ymax: 318255.5
---
> Bounding box:  xmin: 123829 ymin: 14744.69 xmax: 930521.8 ymax: 318259.9
122,131c122,131
< 1  window MULTIPOLYGON (((886135.8 31...
< 2   point      POINT (339121.1 257811.6)
< 3   point      POINT (827440.4 246568.3)
< 4   point      POINT (451339.2 207943.6)
< 5   point      POINT (268749.7 203323.4)
< 6   point      POINT (516676.5 198556.1)
< 7   point        POINT (692366 238643.1)
< 8   point      POINT (843278.5 287241.6)
< 9   point      POINT (648477.7 235466.6)
< 10  point        POINT (852593 267248.3)
---
> 1  window MULTIPOLYGON (((886136 3141...
> 2   point      POINT (339121.3 257815.9)
> 3   point      POINT (827443.1 246572.7)
> 4   point          POINT (451340 207948)
> 5   point      POINT (268749.6 203327.8)
> 6   point      POINT (516677.7 198560.6)
> 7   point        POINT (692368 238647.5)
> 8   point        POINT (843281.2 287246)
> 9   point        POINT (648479.4 235471)
> 10  point      POINT (852595.8 267252.6)
  Running ‘stars.R’ [5s/8s]
  Comparing ‘stars.Rout’ to ‘stars.Rout.save’ ... OK
  Running ‘testthat.R’ [19s/29s]
  Running ‘units.R’ [3s/4s]
  Comparing ‘units.Rout’ to ‘units.Rout.save’ ... OK
  Running ‘wkb.R’ [2s/3s]
  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 crs_name
  1           points               Point       NA     10   WGS 84
  2            lines         Line String       NA     10   WGS 84
  3 multilinestrings   Multi Line String       NA      4   WGS 84
  4    multipolygons       Multi Polygon       NA     25   WGS 84
  5  other_relations Geometry Collection       NA      4   WGS 84
  Driver: OSM 
  Available layers:
          layer_name       geometry_type features fields crs_name
  1           points               Point        0     10   WGS 84
  2            lines         Line String        0     10   WGS 84
  3 multilinestrings   Multi Line String        0      4   WGS 84
  4    multipolygons       Multi Polygon        3     25   WGS 84
  5  other_relations Geometry Collection        0      4   WGS 84
  Simple feature collection with 3 features and 25 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -1.556254 ymin: 53.79519 xmax: -1.550716 ymax: 53.80341
  Geodetic 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
  Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  Geodetic 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 GPKG: substituting LOCAL_CS["Undefined Cartesian SRS"] for missing CRS
  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 GPKG: substituting LOCAL_CS["Undefined Cartesian SRS"] for missing CRS
  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"),
  +           as.Date(c(NA, -99, 0, 1), origin = "1970-01-01")),
  +     d = c(as.POSIXct("2001-01-01"),
  +           as.POSIXct(c(NA, -99, 0, 1), origin = "1970-01-01")),
  +     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)
  + }
  writing GPKG: substituting LOCAL_CS["Undefined Cartesian SRS"] for missing CRS
  Error in CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  : 
    Not compatible with requested type: [type=character; target=double].
  Calls: st_write -> st_write.sf -> CPL_write_ogr
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require(testthat, quietly = TRUE)) {
  +  suppressPackageStartupMessages(library(sf))
  +  test_check("sf")
  + }
  Coordinate Reference System:
    User input: EPSG:4326 
    wkt:
  GEOGCRS["WGS 84",
      ENSEMBLE["World Geodetic System 1984 ensemble",
          MEMBER["World Geodetic System 1984 (Transit)"],
          MEMBER["World Geodetic System 1984 (G730)"],
          MEMBER["World Geodetic System 1984 (G873)"],
          MEMBER["World Geodetic System 1984 (G1150)"],
          MEMBER["World Geodetic System 1984 (G1674)"],
          MEMBER["World Geodetic System 1984 (G1762)"],
          MEMBER["World Geodetic System 1984 (G2139)"],
          ELLIPSOID["WGS 84",6378137,298.257223563,
              LENGTHUNIT["metre",1]],
          ENSEMBLEACCURACY[2.0]],
      PRIMEM["Greenwich",0,
          ANGLEUNIT["degree",0.0174532925199433]],
      CS[ellipsoidal,2],
          AXIS["geodetic latitude (Lat)",north,
              ORDER[1],
              ANGLEUNIT["degree",0.0174532925199433]],
          AXIS["geodetic longitude (Lon)",east,
              ORDER[2],
              ANGLEUNIT["degree",0.0174532925199433]],
      USAGE[
          SCOPE["Horizontal component of 3D system."],
          AREA["World."],
          BBOX[-90,-180,90,180]],
      ID["EPSG",4326]]
  Coordinate Reference System:
    No user input
    wkt:
  GEOGCRS["WGS 84",
      ENSEMBLE["World Geodetic System 1984 ensemble",
          MEMBER["World Geodetic System 1984 (Transit)"],
          MEMBER["World Geodetic System 1984 (G730)"],
          MEMBER["World Geodetic System 1984 (G873)"],
          MEMBER["World Geodetic System 1984 (G1150)"],
          MEMBER["World Geodetic System 1984 (G1674)"],
          MEMBER["World Geodetic System 1984 (G1762)"],
          MEMBER["World Geodetic System 1984 (G2139)"],
          ELLIPSOID["WGS 84",6378137,298.257223563,
              LENGTHUNIT["metre",1]],
          ENSEMBLEACCURACY[2.0]],
      PRIMEM["Greenwich",0,
          ANGLEUNIT["degree",0.0174532925199433]],
      CS[ellipsoidal,2],
          AXIS["geodetic latitude (Lat)",north,
              ORDER[1],
              ANGLEUNIT["degree",0.0174532925199433]],
          AXIS["geodetic longitude (Lon)",east,
              ORDER[2],
              ANGLEUNIT["degree",0.0174532925199433]],
      USAGE[
          SCOPE["Horizontal component of 3D system."],
          AREA["World."],
          BBOX[-90,-180,90,180]],
      ID["EPSG",4326]]
  Cannot open layer foo
  Reading layer `nospatial' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nospatial.gpkg' 
    using driver `GPKG'
  Reading layer `nospatial' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nospatial.gpkg' 
    using driver `GPKG'
  OGR: Unsupported geometry type
  Failed to create feature 1 in x
  Failed to create feature 1 in x
  [ FAIL 1 | WARN 12 | SKIP 61 | PASS 703 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • !sf_use_s2() is not TRUE (1)
  • Sys.getenv("USER") %in% c("edzer", "travis") is not TRUE (3)
  • could not connect to postgis database (46)
  • empty test (6)
  • sf_extSoftVersion()[["GDAL"]] < "2.5.0" && sf_extSoftVersion()[["proj.4"]] <  (1)
  • sf_extSoftVersion()[["GDAL"]] < "2.5.0" is not TRUE (1)
  • sf_extSoftVersion()[["proj.4"]] < "6.0.0" is not TRUE (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_tm.R:10'): st_read and write handle date and time ──────────────
  <Rcpp::not_compatible/C++Error/error/condition>
  Error in `CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options), 
      as.character(layer_options), geom, dim, fids, config_options, 
      quiet, append, delete_dsn, delete_layer, write_geometries, 
      getOption("width"))`: Not compatible with requested type: [type=character; target=double].
  Backtrace:
      ▆
   1. ├─sf::st_write(x[-4], shp[1], quiet = TRUE) at test_tm.R:10:4
   2. └─sf:::st_write.sf(x[-4], shp[1], quiet = TRUE)
   3.   └─sf:::CPL_write_ogr(...)
  
  [ FAIL 1 | WARN 12 | SKIP 61 | PASS 703 ]
  Error: Test failures
  Execution halted