Running ‘aggregate.R’ [1s/2s]
  Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.10.1, GDAL 3.3.3, PROJ 8.2.0
---
> Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
26c26
< 1       1 1.5 POLYGON ((1 0, 0 0, 0 1, 1 ...
---
> 1       1 1.5 POLYGON ((0 1, 1 1, 1 0, 0 ...
  Running ‘cast.R’ [2s/3s]
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ... OK
  Running ‘crs.R’ [2s/4s]
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...73,87c73
<     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]],
---
>     DATUM["World Geodetic System 1984",
89,91c75
<             LENGTHUNIT["metre",1],
<             ID["EPSG",7030]],
<         ENSEMBLEACCURACY[2.0],
---
>             LENGTHUNIT["metre",1]],
115,129c99
<     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]],
---
>     DATUM["World Geodetic System 1984",
131,133c101
<             LENGTHUNIT["metre",1],
<             ID["EPSG",7030]],
<         ENSEMBLEACCURACY[2.0],
---
>             LENGTHUNIT["metre",1]],
158,165c126
<     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)"],
---
>     DATUM["World Geodetic System 1984",
167,168c128
<             LENGTHUNIT["metre",1]],
<         ENSEMBLEACCURACY[2.0]],
---
>             LENGTHUNIT["metre",1]]],
186,193c146
<     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)"],
---
>     DATUM["World Geodetic System 1984",
195,196c148
<             LENGTHUNIT["metre",1]],
<         ENSEMBLEACCURACY[2.0]],
---
>             LENGTHUNIT["metre",1]]],
  Running ‘dist.R’ [2s/3s]
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’ [6s/11s]
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...78,79c78,79
< 1 (0,0.1]           0.0760 (((-8863447 4143479, -8857175 4151339, -8858837 4156…
< 2 (0.1,0.12]        0.112  (((-9362143 4197312, -9355589 4200996, -9354263 4203…
---
> 1 (0,0.1]           0.0760 (((-9349959 4195534, -9351260 4199567, -9354263 4203…
> 2 (0.1,0.12]        0.112  (((-9355589 4200996, -9354263 4203717, -9351260 4199…
81c81
< 4 (0.15,0.25]       0.190  (((-8830723 4133018, -8832558 4137955, -8832096 4141…
---
> 4 (0.15,0.25]       0.190  (((-9173717 4227806, -9181049 4224455, -9186013 4224…
184c184
< 1   0.00000259 (((138426 177699.3, 145548.6 177837.2, 151051.2 180557.6, 152246…
---
> 1   0.00000259 (((446521.1 133561, 441668.6 140459.3, 436812.5 146953.9, 433885…
206c206
< 1             329962 (((138426 177699.3, 145548.6 177837.2, 151051.2 180557.6, …
---
> 1             329962 (((446521.1 133561, 441668.6 140459.3, 436812.5 146953.9, …
  Running ‘empty.R’ [2s/3s]
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’ [3s/5s]
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ... OK
  Running ‘geos.R’ [20s/31s]
  Comparing ‘geos.Rout’ to ‘geos.Rout.save’ ...165a166,168
> [1] "XY"                 "GEOMETRYCOLLECTION" "sfg"               
> [1] "sfc_GEOMETRYCOLLECTION" "sfc"                   
> [1] "sf"         "data.frame"
554a558,571
> LINESTRING (3 3, 2 2, 1 1)
> Geometry set for 1 feature 
> Geometry type: LINESTRING
> Dimension:     XY
> Bounding box:  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
> Bounding box:  xmin: 1 ymin: 1 xmax: 3 ymax: 3
> CRS:           NA
>   a                       geom
> 1 2 LINESTRING (3 3, 2 2, 1 1)
  Running ‘graticule.R’ [4s/5s]
  Comparing ‘graticule.Rout’ to ‘graticule.Rout.save’ ... OK
  Running ‘grid.R’ [2s/3s]
  Comparing ‘grid.Rout’ to ‘grid.Rout.save’ ... OK
  Running ‘maps.R’ [3s/6s]
  Comparing ‘maps.Rout’ to ‘maps.Rout.save’ ... OK
  Running ‘plot.R’ [9s/14s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’ [3s/5s]
  Comparing ‘read.Rout’ to ‘read.Rout.save’ ...178c178
< Projected CRS: Undefined cartesian SRS
---
> Projected CRS: Undefined Cartesian SRS
321,323d320
< Warning message:
< In CPL_read_ogr(dsn, layer, query, as.character(options), quiet,  :
<   GDAL Message 1: GFS file saving asked, but failed
337,338c334
<   `/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sf.Rcheck/tests/tst__.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/tests/tst__.gpkg' using driver `GPKG'
  Running ‘roundtrip.R’ [8s/12s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ...147,148c147
<   `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nc.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/sf/gpkg/nc.gpkg' using driver `GPKG'
  Running ‘s2.R’ [3s/4s]
  Comparing ‘s2.Rout’ to ‘s2.Rout.save’ ...4c4
< Linking to GEOS 3.10.1, GDAL 3.3.3, PROJ 8.2.0
---
> Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
30a31
> [1] 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.10.1"  "3.3.3"  "8.2.0" 
---
> "3.9.0" "3.2.1" "7.2.1" 
641,643c641
< 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 `/home/edzer/git/sf.Rcheck/sf/shape/nc.shp' using driver `ESRI Shapefile'
1023c1021
< POLYGON ((0.983044 0.0650651, 0.959619 0.040380...
---
> POLYGON ((0 0.915082, 0.0169559 0.934935, 0.040...
1030c1028
< POLYGON ((0.983044 0.0650651, 0.959619 0.040380...
---
> POLYGON ((0 0.915082, 0.0169559 0.934935, 0.040...
1038c1036
< 1 1 POLYGON ((0.983044 0.065065...
---
> 1 1 POLYGON ((0 0.915082, 0.016...
1048c1046
< 1 1 POLYGON ((0.983044 0.065065...
---
> 1 1 POLYGON ((0 0.915082, 0.016...
  Running ‘sfg.R’ [1s/3s]
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘spatstat.R’ [5s/7s]
  Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ...198,199c198
<   `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/gpkg/nc.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/sf/gpkg/nc.gpkg' using driver `GPKG'
  Running ‘stars.R’ [2s/3s]
  Running ‘testthat.R’ [16s/25s]
  Running ‘units.R’ [2s/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/stars.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(sf))
  > 
  > tif = system.file("tif/geomatrix.tif", package = "sf")
  > 
  > gdal_metadata(tif)
  [1] "AREA_OR_POINT=Point"
  > gdal_metadata(tif, NA_character_)
  [1] "IMAGE_STRUCTURE"     "DERIVED_SUBDATASETS" ""                   
  > try(gdal_metadata(tif, "wrongDomain")) 
  Error in gdal_metadata(tif, "wrongDomain") : 
    domain_item[1] not found in available metadata domains
  > gdal_metadata(tif, c("IMAGE_STRUCTURE"))
  [[1]]
  [1] "BAND"
  
  attr(,"class")
  [1] "gdal_metadata"
  > try(length(gdal_metadata(tif, c("DERIVED_SUBDATASETS")))) # fails on Fedora 26
  [1] 2
  > 
  > if (require(stars)) {
  +   tif = system.file("tif/geomatrix.tif", package = "sf")
  +   r = read_stars(tif)
  +   d = (st_dimensions(r))
  +   gt =  c(1841001.75, 1.5, -5, 1144003.25, -5, -1.5)
  +   x1 = st_as_sfc(d, as_points = TRUE, use_cpp = TRUE, geotransform = gt)
  +   x2 = st_as_sfc(d, as_points = TRUE, use_cpp = FALSE, geotransform = gt)
  +   print(identical(x1, x2))
  +   y1 = st_as_sfc(d, as_points = FALSE, use_cpp = TRUE, geotransform = gt)
  +   y2 = st_as_sfc(d, as_points = FALSE, use_cpp = FALSE, geotransform = gt)
  +   print(identical(y1, y2))
  + 
  +   # rectilinear grid:
  +   m = matrix(1:20, nrow = 5, ncol = 4)
  +   x = c(0,0.5,1,2,4,5)
  +   y = c(0.3,0.5,1,2,2.2)
  +   r = st_as_stars(list(m = m), dimensions = st_dimensions(x = x, y = y, .raster = c("x", "y")))
  +   print(st_as_sfc(st_dimensions(r), as_points = TRUE))
  +   print(st_as_sfc(st_dimensions(r), as_points = FALSE))
  + 
  +   # curvilinear grid:
  +   lon = st_as_stars(matrix(1:5, 4, 5, byrow = TRUE))
  +   lat = st_as_stars(matrix(1:4, 4, 5))
  +   ll = c(X1 = lon, X2 = lat)
  +   curv = st_as_stars(st_as_stars(t(m)), curvilinear = setNames(ll, c("X1", "X2")))
  +   print(st_as_sfc(st_dimensions(curv), as_points = TRUE))
  +   print(st_as_sfc(st_dimensions(curv), as_points = FALSE))
  + 
  +   demo(nc, echo = FALSE, ask = FALSE)
  +   print(x <- st_rasterize(nc)) # default grid:
  +   print(p <- st_as_sf(x, as_points = FALSE)) # polygonize: follow raster boundaries
  +   print(p <- st_as_sf(x, as_points = FALSE, use_integer = TRUE)) # polygonize integers: follow raster boundaries
  +   print(try(p <- st_as_sf(x, as_points = TRUE))) # polygonize: contour, requies GDAL >= 2.4.0
  +   if (utils::packageVersion("stars") >= "0.2-1") {
  +     write_stars(read_stars(tif), tempfile(fileext = ".tif"))
  +     write_stars(read_stars(tif, proxy = TRUE), tempfile(fileext = ".tif"))
  +     write_stars(read_stars(tif, proxy = TRUE), tempfile(fileext = ".tif"), chunk_size = c(200,200))
  +   	na.tif = read_stars(system.file("tif/na.tif", package = "stars"))
  +   	write_stars(na.tif, "na.tif")
  +   	write_stars(na.tif, "na.tif", NA_value = -999)
  +   	na.tif = read_stars(system.file("tif/na.tif", package = "stars"), NA_value = -999)
  +   	write_stars(na.tif, "na.tif")
  +   	write_stars(na.tif, "na.tif", NA_value = -999)
  +   	na.tif = read_stars(system.file("tif/na.tif", package = "stars"), NA_value = -999, proxy = TRUE)
  +   	write_stars(na.tif, "na.tif")
  +   	write_stars(na.tif, "na.tif", NA_value = -999)
  +   }
  +   # https://github.com/mtennekes/tmap/issues/368
  +   if (utils::packageVersion("stars") > "0.4-0") {
  +     lc = system.file('tif/lc.tif', package = 'stars')
  +     if (lc != "") {
  + 	    r = read_stars(lc, RAT = "Land Cover Class")
  + 	    r <- droplevels(r)
  +     }
  +   }
  + }
  Loading required package: stars
  Loading required package: abind
  [1] TRUE
  [1] TRUE
  Geometry set for 20 features 
  Geometry type: POINT
  Dimension:     XY
  Bounding box:  xmin: 0.25 ymin: 0.4 xmax: 4.5 ymax: 2.1
  CRS:           NA
  First 5 geometries:
  POINT (0.25 0.4)
  POINT (0.75 0.4)
  POINT (1.5 0.4)
  POINT (3 0.4)
  POINT (4.5 0.4)
  Geometry set for 20 features 
  Geometry type: POLYGON
  Dimension:     XY
  Bounding box:  xmin: 0 ymin: 0.3 xmax: 5 ymax: 2.2
  CRS:           NA
  First 5 geometries:
  POLYGON ((0 0.3, 0.5 0.3, 0.5 0.5, 0 0.5, 0 0.3))
  POLYGON ((0.5 0.3, 1 0.3, 1 0.5, 0.5 0.5, 0.5 0...
  POLYGON ((1 0.3, 2 0.3, 2 0.5, 1 0.5, 1 0.3))
  POLYGON ((2 0.3, 4 0.3, 4 0.5, 2 0.5, 2 0.3))
  POLYGON ((4 0.3, 5 0.3, 5 0.5, 4 0.5, 4 0.3))
  Error: C stack usage  15940304 is too close to the limit
  Execution halted