Running ‘aggregate.R’ [17s/21s]
  Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...4c4
< Linking to GEOS 3.12.0, GDAL 3.7.0, PROJ 9.2.1; sf_use_s2() is TRUE
---
> Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
  Running ‘align.R’ [3s/4s]
  Comparing ‘align.Rout’ to ‘align.Rout.save’ ... OK
  Running ‘area.R’ [3s/3s]
  Comparing ‘area.Rout’ to ‘area.Rout.save’ ... OK
  Running ‘crop.R’ [5s/6s]
  Comparing ‘crop.Rout’ to ‘crop.Rout.save’ ... OK
  Running ‘curvilinear.R’ [2s/3s]
  Comparing ‘curvilinear.Rout’ to ‘curvilinear.Rout.save’ ... OK
  Running ‘datasets.R’ [2s/4s]
  Comparing ‘datasets.Rout’ to ‘datasets.Rout.save’ ... OK
  Running ‘dimensions.R’ [4s/5s]
  Comparing ‘dimensions.Rout’ to ‘dimensions.Rout.save’ ... OK
  Running ‘ee.R’ [3s/3s]
  Comparing ‘ee.Rout’ to ‘ee.Rout.save’ ...6c6
< Linking to GEOS 3.12.0, GDAL 3.7.0, PROJ 9.2.1; sf_use_s2() is TRUE
---
> Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
  Running ‘extract.R’ [3s/4s]
  Comparing ‘extract.Rout’ to ‘extract.Rout.save’ ... OK
  Running ‘gridtypes.R’ [3s/3s]
  Comparing ‘gridtypes.Rout’ to ‘gridtypes.Rout.save’ ...246,247c246,247
< lon    1  3 WGS 84 (CRS84) FALSE  [3x3] 0.03,...,0.89 [x]
< lat    1  3 WGS 84 (CRS84) FALSE [3x3] 0.021,...,0.89 [y]
---
> lon    1  3 WGS 84 FALSE  [3x3] 0.03,...,0.89 [x]
> lat    1  3 WGS 84 FALSE [3x3] 0.021,...,0.89 [y]
  Running ‘mdim.R’ [3s/3s]
  Comparing ‘mdim.Rout’ to ‘mdim.Rout.save’ ...24c24
< X2    1  2 2023-03-04 12:35:00 UTC 1 hours POSIXct FALSE
---
> X2    1  2 2023-03-04 12:35:00 CET 1 hours POSIXct FALSE
57c57
< X2    1  2 2023-03-04 12:35:00 UTC 1 hours POSIXct    NA
---
> X2    1  2 2023-03-04 11:35:00 UTC 1 hours POSIXct    NA
  Running ‘nc.R’ [4s/5s]
  Comparing ‘nc.Rout’ to ‘nc.Rout.save’ ... OK
  Running ‘plot.R’ [5s/6s]
  Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK
  Running ‘predict.R’ [6s/7s]
  Comparing ‘predict.Rout’ to ‘predict.Rout.save’ ... OK
  Running ‘proxy.R’ [5s/6s]
  Comparing ‘proxy.Rout’ to ‘proxy.Rout.save’ ... OK
  Running ‘raster.R’ [16s/21s]
  Comparing ‘raster.Rout’ to ‘raster.Rout.save’ ...96,97c96,97
< x          1 10   -180    36 WGS 84 (CRS84)         NULL [x]
< y          1 10     90   -18 WGS 84 (CRS84)         NULL [y]
---
> x          1 10   -180    36 WGS 84         NULL [x]
> y          1 10     90   -18 WGS 84         NULL [y]
  Running ‘rasterize.R’ [4s/6s]
  Comparing ‘rasterize.Rout’ to ‘rasterize.Rout.save’ ... OK
  Running ‘rectilinear.R’ [3s/5s]
  Comparing ‘rectilinear.Rout’ to ‘rectilinear.Rout.save’ ... OK
  Running ‘redimension.R’ [3s/4s]
  Comparing ‘redimension.Rout’ to ‘redimension.Rout.save’ ... OK
  Running ‘sf.R’ [4s/5s]
  Comparing ‘sf.Rout’ to ‘sf.Rout.save’ ... OK
  Running ‘sp.R’ [3s/4s]
  Comparing ‘sp.Rout’ to ‘sp.Rout.save’ ... OK
  Running ‘spacetime.R’ [5s/6s]
  Comparing ‘spacetime.Rout’ to ‘spacetime.Rout.save’ ... OK
  Running ‘spatstat.R’ [5s/7s]
  Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ... OK
  Running ‘stars.R’ [13s/16s]
  Comparing ‘stars.Rout’ to ‘stars.Rout.save’ ...212c212
< 4  1841004 1143985
---
> 4  1841005 1143985
216c216
< 8  1841010 1143965
---
> 8  1841011 1143965
257,258c257,258
< x    1 360   -180     1 WGS 84 (CRS84) [x]
< y    1 180     90    -1 WGS 84 (CRS84) [y]
---
> x    1 360   -180     1 WGS 84 [x]
> y    1 180     90    -1 WGS 84 [y]
  Running ‘subset.R’ [3s/4s]
  Comparing ‘subset.Rout’ to ‘subset.Rout.save’ ... OK
  Running ‘testthat.R’ [22s/27s]
  Comparing ‘testthat.Rout’ to ‘testthat.Rout.save’ ... OK
  Running ‘tidy.R’ [3s/5s]
  Comparing ‘tidy.Rout’ to ‘tidy.Rout.save’ ... OK
  Running ‘transform.R’ [3s/4s]
  Comparing ‘transform.Rout’ to ‘transform.Rout.save’ ... OK
  Running ‘warp.R’ [4s/4s]
  Running ‘write.R’ [3s/4s]
  Comparing ‘write.Rout’ to ‘write.Rout.save’ ... OK
Running the tests in ‘tests/warp.R’ failed.
Complete output:
  > suppressPackageStartupMessages(library(stars))
  > geomatrix = system.file("tif/geomatrix.tif", package = "stars")
  > x = read_stars(geomatrix)
  > # can stars reproduce what gdal does, by default?
  > x2 = st_warp(x, use_gdal = TRUE, no_data_value = -9999)
  > y = st_warp(x, x2)
  > if (interactive()) { plot(x2, breaks = "equal", axes=TRUE) }
  > if (interactive()) { plot(y, breaks = "equal", axes=TRUE) }
  > names(x2) = names(y)
  > all.equal(x2, y) # yes?
  [1] TRUE
  > 
  > # does gdal reproduce with stars template object?
  > (x2 = setNames(st_warp(x, y, use_gdal = TRUE, no_data_value=-1), "file.tif"))
  stars object with 2 dimensions and 1 attribute
  attribute(s):
            Min. 1st Qu. Median     Mean 3rd Qu. Max. NA's
  file.tif    74     115    123 126.4289     132  255  224
  dimension(s):
    from to  offset delta                refsys point x/y
  x    1 25 1840902  5.22 WGS 84 / UTM zone 11N FALSE [x]
  y    1 25 1144003 -5.22 WGS 84 / UTM zone 11N FALSE [y]
  > 
  > # does gdal reproduce what stars does, default cell size?
  > (x2 = st_warp(x, crs = st_crs(x), use_gdal = FALSE))
  stars object with 2 dimensions and 1 attribute
  attribute(s):
                 Min. 1st Qu. Median     Mean 3rd Qu. Max. NA's
  geomatrix.tif    74     115    123 126.4289     132  255  224
  dimension(s):
    from to  offset delta                refsys x/y
  x    1 25 1840902  5.22 WGS 84 / UTM zone 11N [x]
  y    1 25 1144003 -5.22 WGS 84 / UTM zone 11N [y]
  > (y = setNames(st_warp(x, x2, use_gdal = TRUE, debug = FALSE, no_data_value=-1), "file.tif"))
  stars object with 2 dimensions and 1 attribute
  attribute(s):
            Min. 1st Qu. Median     Mean 3rd Qu. Max. NA's
  file.tif    74     115    123 126.4289     132  255  224
  dimension(s):
    from to  offset delta                refsys point x/y
  x    1 25 1840902  5.22 WGS 84 / UTM zone 11N FALSE [x]
  y    1 25 1144003 -5.22 WGS 84 / UTM zone 11N FALSE [y]
  > 
  > # try with multiple bands:
  > tif = system.file("tif/L7_ETMs.tif", package = "stars")
  > (x1 = read_stars(tif))
  stars object with 3 dimensions and 1 attribute
  attribute(s):
               Min. 1st Qu. Median     Mean 3rd Qu. Max.
  L7_ETMs.tif     1      54     69 68.91242      86  255
  dimension(s):
       from  to  offset delta                     refsys point x/y
  x       1 349  288776  28.5 SIRGAS 2000 / UTM zone 25S FALSE [x]
  y       1 352 9120761 -28.5 SIRGAS 2000 / UTM zone 25S FALSE [y]
  band    1   6      NA    NA                         NA    NA    
  > (x1p = read_stars(tif, proxy = TRUE))
  stars_proxy object with 1 attribute in 1 file(s):
  $L7_ETMs.tif
  [1] "[...]/L7_ETMs.tif"
  
  dimension(s):
       from  to  offset delta                     refsys point x/y
  x       1 349  288776  28.5 SIRGAS 2000 / UTM zone 25S FALSE [x]
  y       1 352 9120761 -28.5 SIRGAS 2000 / UTM zone 25S FALSE [y]
  band    1   6      NA    NA                         NA    NA    
  > (x1a = st_warp(x1, crs = st_crs(4326)))
  stars object with 3 dimensions and 1 attribute
  attribute(s):
               Min. 1st Qu. Median     Mean 3rd Qu. Max. NA's
  L7_ETMs.tif     1      54     69 68.93072      86  255 8778
  dimension(s):
       from  to offset      delta refsys x/y
  x       1 350 -34.92  0.0002592 WGS 84 [x]
  y       1 352  -7.95 -0.0002592 WGS 84 [y]
  band    1   6     NA         NA     NA    
  > (x1b = setNames(st_warp(x1, x1p, use_gdal = TRUE, no_data_value=-1), "file.tif"))
  Error: could not open output file for writing
  In addition: Warning message:
  In CPL_gdal_warper(source, destination, as.integer(resampling_method(options)),  :
    GDAL Message 4: Failed to open /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/stars/tif/L7_ETMs.tif: Read-only file system.
  Execution halted