Running ‘aggregate.R’
  Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.8.1, GDAL 3.0.4, PROJ 6.3.2
---
> Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
26c26
< 1       1 1.5 POLYGON ((1 1, 1 0, 0 0, 0 ...
---
> 1       1 1.5 POLYGON ((0 1, 1 1, 1 0, 0 ...
  Running ‘cast.R’
  Comparing ‘cast.Rout’ to ‘cast.Rout.save’ ... OK
  Running ‘crs.R’
  Comparing ‘crs.Rout’ to ‘crs.Rout.save’ ...91c91
<         AREA["World"],
---
>         AREA["World."],
117c117
<         AREA["World"],
---
>         AREA["World."],
139,140c139,140
<         SCOPE["unknown"],
<         AREA["World"],
---
>         SCOPE["Horizontal component of 3D system."],
>         AREA["World."],
159,160c159,160
<         SCOPE["unknown"],
<         AREA["World"],
---
>         SCOPE["Horizontal component of 3D system."],
>         AREA["World."],
  Running ‘dist.R’
  Comparing ‘dist.Rout’ to ‘dist.Rout.save’ ... OK
  Running ‘dplyr.R’ [12s/12s]
  Comparing ‘dplyr.Rout’ to ‘dplyr.Rout.save’ ...78,81c78,81
< 1 (0,0.1]           0.0760 (((-8678517 4054264, -8679088 4061405, -8680136 4061…
< 2 (0.1,0.12]        0.112  (((-9383227 4192541, -9375980 4199500, -9370835 4196…
< 3 (0.12,0.15]       0.134  (((-8520830 4108031, -8522040 4111119, -8520104 4111…
< 4 (0.15,0.25]       0.190  (((-8685774 4073056, -8684147 4070879, -8683670 4067…
---
> 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…
> 3 (0.12,0.15]       0.134  (((-9302071 4171499, -9311146 4181234, -9311292 4183…
> 4 (0.15,0.25]       0.190  (((-9173717 4227806, -9181049 4224455, -9186013 4224…
184c184
< 1   0.00000259 (((705429.2 49248.34, 705861.5 27435.66, 698897.7 18679.88, 6485…
---
> 1   0.00000259 (((446521.1 133561, 441668.6 140459.3, 436812.5 146953.9, 433885…
194c194
< 1       0.00000259 (((724644.4 62316.58, 714305.9 49733.25, 711692 35996.55, 70…
---
> 1       0.00000259 (((154399.2 148898.9, 142569.6 149407.8, 123829 150481.4, 12…
206c206
< 1             329962 (((705429.2 49248.34, 705861.5 27435.66, 698897.7 18679.88…
---
> 1             329962 (((446521.1 133561, 441668.6 140459.3, 436812.5 146953.9, …
216c216
< 1              329962 (((724644.4 62316.58, 714305.9 49733.25, 711692 35996.55,…
---
> 1              329962 (((154399.2 148898.9, 142569.6 149407.8, 123829 150481.4,…
  Running ‘empty.R’
  Comparing ‘empty.Rout’ to ‘empty.Rout.save’ ... OK
  Running ‘gdal_geom.R’
  Comparing ‘gdal_geom.Rout’ to ‘gdal_geom.Rout.save’ ... OK
  Running ‘geos.R’ [42s/43s]
  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 ‘maps.R’
  Comparing ‘maps.Rout’ to ‘maps.Rout.save’ ... OK
  Running ‘plot.R’ [15s/15s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘read.R’
  Comparing ‘read.Rout’ to ‘read.Rout.save’ ...334,335c334
<   `/data/gannet/ripley/R/packages/tests-devel/sf.Rcheck/tests/tst__.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/tests/tst__.gpkg' using driver `GPKG'
  Running ‘roundtrip.R’ [14s/14s]
  Comparing ‘roundtrip.Rout’ to ‘roundtrip.Rout.save’ ...147,148c147
<   `/data/gannet/ripley/R/packages/tests-devel/sf.Rcheck/sf/gpkg/nc.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/sf/gpkg/nc.gpkg' using driver `GPKG'
  Running ‘s2.R’
  Comparing ‘s2.Rout’ to ‘s2.Rout.save’ ...4c4
< Linking to GEOS 3.8.1, GDAL 3.0.4, PROJ 6.3.2
---
> Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
  Running ‘sample.R’
  Comparing ‘sample.Rout’ to ‘sample.Rout.save’ ... OK
  Running ‘sfc.R’ [41s/41s]
  Comparing ‘sfc.Rout’ to ‘sfc.Rout.save’ ...335c335
< "3.8.1" "3.0.4" "6.3.2" 
---
> "3.9.0" "3.2.1" "7.2.1" 
641,643c641
< Reading layer `nc' from data source 
<   `/data/gannet/ripley/R/packages/tests-devel/sf.Rcheck/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 ((1 0.0849179, 0.983044 0.0650651, 0.95...
---
> POLYGON ((0 0.915082, 0.0169559 0.934935, 0.040...
1030c1028
< POLYGON ((1 0.0849179, 0.983044 0.0650651, 0.95...
---
> POLYGON ((0 0.915082, 0.0169559 0.934935, 0.040...
1038c1036
< 1 1 POLYGON ((1 0.0849179, 0.98...
---
> 1 1 POLYGON ((0 0.915082, 0.016...
1048c1046
< 1 1 POLYGON ((1 0.0849179, 0.98...
---
> 1 1 POLYGON ((0 0.915082, 0.016...
  Running ‘sfg.R’
  Comparing ‘sfg.Rout’ to ‘sfg.Rout.save’ ... OK
  Running ‘spatstat.R’
  Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ...198,199c198
<   `/data/gannet/ripley/R/packages/tests-devel/sf.Rcheck/sf/gpkg/nc.gpkg' 
<   using driver `GPKG'
---
>   `/home/edzer/git/sf.Rcheck/sf/gpkg/nc.gpkg' using driver `GPKG'
  Running ‘stars.R’
  Running ‘testthat.R’ [27s/27s]
  Running ‘units.R’
  Comparing ‘units.Rout’ to ‘units.Rout.save’ ... OK
  Running ‘wkb.R’
  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  19928276 is too close to the limit
  Execution halted