Last updated on 2025-07-14 08:49:15 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 2.0.0 | 140.83 | 198.89 | 339.72 | OK | |
r-devel-linux-x86_64-debian-gcc | 2.0.0 | 112.88 | 132.12 | 245.00 | OK | |
r-devel-linux-x86_64-fedora-clang | 2.0.0 | 577.65 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 2.0.0 | 658.29 | OK | |||
r-devel-windows-x86_64 | 2.0.0 | 176.00 | 765.00 | 941.00 | OK | |
r-patched-linux-x86_64 | 2.0.0 | 166.19 | 189.45 | 355.64 | OK | |
r-release-linux-x86_64 | 2.0.0 | 152.85 | 187.07 | 339.92 | OK | |
r-release-macos-arm64 | 2.0.0 | 164.00 | OK | |||
r-release-macos-x86_64 | 2.0.0 | 294.00 | OK | |||
r-release-windows-x86_64 | 2.0.0 | 180.00 | 745.00 | 925.00 | OK | |
r-oldrel-macos-arm64 | 2.0.0 | 160.00 | NOTE | |||
r-oldrel-macos-x86_64 | 2.0.0 | 318.00 | NOTE | |||
r-oldrel-windows-x86_64 | 2.0.0 | 213.00 | 1019.00 | 1232.00 | NOTE |
Version: 2.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [64s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(gdalraster)
GDAL 3.10.3 (released 2025-04-01), GEOS 3.13.0, PROJ 9.6.2
>
> test_check("gdalraster")
ERROR 4: `/data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/doctype.xml' not recognized as being in a supported file format.
ERROR 1: Unknown argument: --invalid_arg
initializing destination raster...
done
0...10...20...30...40...50...60...70...80...90...100 - done.
failed to get statistics, 'NA' returned
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
failed to get projection ref
failed to get projection ref
failed to get projection ref
failed to get projection ref
failed to get projection ref
failed to get projection ref
failed to get projection ref
0...10...20...30...40...50...60...70...80...90...100 - done.
calculating from 1 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/storml_evc_ct.tif
Int64/UInt64 raster data types are not fully supported.
Loss of precision will occur for values > 2^53.
scanning raster...
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 5: byte.tif: GDALDataset::GetRasterBand(2) - Illegal band #
extracting from band 1...
0extracting from band 1...
extracting from band 1...
...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 2...
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 4: `/data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/doctype.xml' not recognized as being in a supported file format.
cannot delete, the layer was opened read-only
ERROR 1: Transaction not established
Transaction not established
ERROR 1: Transaction not established
Transaction not established
list element not matched: nonexistent_fld
geometry must be `raw` (WKB) or `character` (WKT) (row index 0)
geometry must be `raw` (WKB) or `character` (WKT) (row index 0)
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 1: Input file too large to be opened
failed to ingest file
cannot set access while the file is open
'access' should be 'r', 'r+', 'w' or 'w+'
adding /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storm_lake.lcp ...
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 5: storml_elev_fill.tif: GDALDataset::GetRasterBand(2) - Illegal band #
ERROR 4: _err_: No such file or directory
initializing destination raster...
done
calculating from 1 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/rastcalc297f7920274c04.tif
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 5: storml_evt.tif: GDALDataset::GetRasterBand(2) - Illegal band #
ERROR 4: _err_: No such file or directory
ERROR 5: storml_evt_mmu2.tif: GDALDataset::GetRasterBand(2) - Illegal band #
ERROR 4: _err_: No such file or directory
ERROR 5: rastcalc297f7920274c04.tif: GDALDataset::GetRasterBand(2) - Illegal band #
initializing destination raster...
done
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
Warning 6: Normalized/laundered field name: 'burn_bnd_ac' to 'burn_bnd_a'
Warning 6: Normalized/laundered field name: 'burn_bnd_lat' to 'burn_bnd_l'
Warning 6: Normalized/laundered field name: 'burn_bnd_lon' to 'burn_bnd_1'
INFO: Open of `/data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/ynp_fires_1984_2022.gpkg'
using driver `GPKG' successful.
1: mtbs_perims (Multi Polygon)
{
"description":"/data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/ynp_fires_1984_2022.gpkg",
"driverShortName":"GPKG",
"driverLongName":"GeoPackage",
"layers":[
{
"name":"mtbs_perims",
"geometryFields":[
{
"name":"geom",
"type":"MultiPolygon",
"nullable":true,
"extent":[
469685.72668182797,
-12917.7562873564,
573531.71964323497,
96577.336357780106
],
"coordinateSystem":{
"wkt":"PROJCRS[\"NAD83 / Montana\",\n BASEGEOGCRS[\"NAD83\",\n DATUM[\"North American Datum 1983\",\n ELLIPSOID[\"GRS 1980\",6378137,298.257222101,\n LENGTHUNIT[\"metre\",1]]],\n PRIMEM[\"Greenwich\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433]],\n ID[\"EPSG\",4269]],\n CONVERSION[\"SPCS83 Montana zone (meter)\",\n METHOD[\"Lambert Conic Conformal (2SP)\",\n ID[\"EPSG\",9802]],\n PARAMETER[\"Latitude of false origin\",44.25,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8821]],\n PARAMETER[\"Longitude of false origin\",-109.5,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8822]],\n PARAMETER[\"Latitude of 1st standard parallel\",49,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8823]],\n PARAMETER[\"Latitude of 2nd standard parallel\",45,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8824]],\n PARAMETER[\"Easting at false origin\",600000,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8826]],\n PARAMETER[\"Northing at false origin\",0,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8827]]],\n CS[Cartesian,2],\n AXIS[\"easting (X)\",east,\n ORDER[1],\n LENGTHUNIT[\"metre\",1]],\n AXIS[\"northing (Y)\",north,\n ORDER[2],\n LENGTHUNIT[\"metre\",1]],\n USAGE[\n SCOPE[\"Engineering survey, topographic mapping.\"],\n AREA[\"United States (USA) - Montana - counties of Beaverhead; Big Horn; Blaine; Broadwater; Carbon; Carter; Cascade; Chouteau; Custer; Daniels; Dawson; Deer Lodge; Fallon; Fergus; Flathead; Gallatin; Garfield; Glacier; Golden Valley; Granite; Hill; Jefferson; Judith Basin; Lake; Lewis and Clark; Liberty; Lincoln; Madison; McCone; Meagher; Mineral; Missoula; Musselshell; Park; Petroleum; Phillips; Pondera; Powder River; Powell; Prairie; Ravalli; Richland; Roosevelt; Rosebud; Sanders; Sheridan; Silver Bow; Stillwater; Sweet Grass; Teton; Toole; Treasure; Valley; Wheatland; Wibaux; Yellowstone.\"],\n BBOX[44.35,-116.07,49.01,-104.04]],\n ID[\"EPSG\",32100]]",
"projjson":{
"$schema":"https://proj.org/schemas/v0.7/projjson.schema.json",
"type":"ProjectedCRS",
"name":"NAD83 / Montana",
"base_crs":{
"type":"GeographicCRS",
"name":"NAD83",
"datum":{
"type":"GeodeticReferenceFrame",
"name":"North American Datum 1983",
"ellipsoid":{
"name":"GRS 1980",
"semi_major_axis":6378137,
"inverse_flattening":298.257222101
}
},
"coordinate_system":{
"subtype":"ellipsoidal",
"axis":[
{
"name":"Geodetic latitude",
"abbreviation":"Lat",
"direction":"north",
"unit":"degree"
},
{
"name":"Geodetic longitude",
"abbreviation":"Lon",
"direction":"east",
"unit":"degree"
}
]
},
"id":{
"authority":"EPSG",
"code":4269
}
},
"conversion":{
"name":"SPCS83 Montana zone (meter)",
"method":{
"name":"Lambert Conic Conformal (2SP)",
"id":{
"authority":"EPSG",
"code":9802
}
},
"parameters":[
{
"name":"Latitude of false origin",
"value":44.25,
"unit":"degree",
"id":{
"authority":"EPSG",
"code":8821
}
},
{
"name":"Longitude of false origin",
"value":-109.5,
"unit":"degree",
"id":{
"authority":"EPSG",
"code":8822
}
},
{
"name":"Latitude of 1st standard parallel",
"value":49,
"unit":"degree",
"id":{
"authority":"EPSG",
"code":8823
}
},
{
"name":"Latitude of 2nd standard parallel",
"value":45,
"unit":"degree",
"id":{
"authority":"EPSG",
"code":8824
}
},
{
"name":"Easting at false origin",
"value":600000,
"unit":"metre",
"id":{
"authority":"EPSG",
"code":8826
}
},
{
"name":"Northing at false origin",
"value":0,
"unit":"metre",
"id":{
"authority":"EPSG",
"code":8827
}
}
]
},
"coordinate_system":{
"subtype":"Cartesian",
"axis":[
{
"name":"Easting",
"abbreviation":"X",
"direction":"east",
"unit":"metre"
},
{
"name":"Northing",
"abbreviation":"Y",
"direction":"north",
"unit":"metre"
}
]
},
"scope":"Engineering survey, topographic mapping.",
"area":"United States (USA) - Montana - counties of Beaverhead; Big Horn; Blaine; Broadwater; Carbon; Carter; Cascade; Chouteau; Custer; Daniels; Dawson; Deer Lodge; Fallon; Fergus; Flathead; Gallatin; Garfield; Glacier; Golden Valley; Granite; Hill; Jefferson; Judith Basin; Lake; Lewis and Clark; Liberty; Lincoln; Madison; McCone; Meagher; Mineral; Missoula; Musselshell; Park; Petroleum; Phillips; Pondera; Powder River; Powell; Prairie; Ravalli; Richland; Roosevelt; Rosebud; Sanders; Sheridan; Silver Bow; Stillwater; Sweet Grass; Teton; Toole; Treasure; Valley; Wheatland; Wibaux; Yellowstone.",
"bbox":{
"south_latitude":44.35,
"west_longitude":-116.07,
"north_latitude":49.01,
"east_longitude":-104.04
},
"id":{
"authority":"EPSG",
"code":32100
}
},
"dataAxisToSRSAxisMapping":[
1,
2
]
}
}
],
"featureCount":61,
"fidColumnName":"fid",
"fields":[
{
"name":"event_id",
"type":"String",
"width":254,
"nullable":true,
"uniqueConstraint":false
},
{
"name":"incid_name",
"type":"String",
"width":254,
"nullable":true,
"uniqueConstraint":false
},
{
"name":"incid_type",
"type":"String",
"width":254,
"nullable":true,
"uniqueConstraint":false
},
{
"name":"map_id",
"type":"Integer64",
"nullable":true,
"uniqueConstraint":false
},
{
"name":"burn_bnd_ac",
"type":"Integer64",
"nullable":true,
"uniqueConstraint":false
},
{
"name":"burn_bnd_lat",
"type":"String",
"width":10,
"nullable":true,
"uniqueConstraint":false
},
{
"name":"burn_bnd_lon",
"type":"String",
"width":10,
"nullable":true,
"uniqueConstraint":false
},
{
"name":"ig_date",
"type":"Date",
"nullable":true,
"uniqueConstraint":false
},
{
"name":"ig_year",
"type":"Integer",
"nullable":true,
"uniqueConstraint":false
}
]
}
],
"domains":{
}
}
INFO: Open of `/vsimem/ynp_fires_1984_2022.gpkg'
using driver `GPKG' successful.
Warning 6: 'invalid' is an unexpected value for COMPRESS creation option of type string-select.
adding /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storml_evt.tif ...
0...10...20...30...40...50...60...70...80...90...100 - done.
adding /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storml_evc.tif ...
0...10...20...30...40...50...60...70...80...90...100 - done.
adding /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storml_evh.tif ...
0...10...20...30...40...50...60...70...80...90...100 - done.
Open GDAL Datasets:
1 S GTiff -839235392 143x107x1 /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storml_elev.tif
scanning raster...
0...10...20...30...40...50...60...70...80...90...100 - done.
scanning raster...
0...10...20...30...40...50...60...70...80...90...100 - done.
combining 2 rasters...
0...10...20...30...40...50...60...70...80...90...100 - done.
scanning raster...
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 4: _err_: No such file or directory
Error : open raster failed
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
adding /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/ynp_fires_1984_2022.gpkg ...
0...10...20...30...40...50...60...70...80...90...100 - done.
calculating from 1 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/rastcalc297f79efd1a75.tif
calculating from 2 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/rastcalc297f794c2fa8d0.tif
0...10...20...30...40...50...60...70...80...90...100 - done.
calculating from 2 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/storml_lndscp.tif
calculating from 1 input layer(s)...
================================================================================
output written to: /vsimem/multiband-calc.tif
calculating from 3 input layer(s)...
================================================================================
output written to: /vsimem/multiband-calc-revert.tif
ERROR 4: /data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/sr_b5_20200829.tif.error: No such file or directory
/data/gannet/ripley/R/packages/tests-clang/gdalraster.Rcheck/gdalraster/extdata/storml_elev.tif
combining 2 rasters...
0...10...20...30...40...50...60...70...80...90...100 - done.
scanning raster...
0...10...20...30...40...50...60...70...80...90...100 - done.
initializing destination raster...
done
initializing destination raster...
done
initializing destination raster...
done
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
calculating from 1 input layer(s)...
================================================================================
output written to: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/rastcalc297f793364bb1e.tif
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
format driver cannot be determined for: /tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/storml_evt.txt
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90extracting from band 1...
extracting from band 1...
...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
extracting from band 1...
0...10...20...30...40...50...60...70...80...90...100 - done.
failed to create geometry object from WKT string
failed to access 'layer'
'layer' does not have CreateGeomField capability
info: open dataset successful on DSN:
'/tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/mtbs_perims.shp'
info: open dataset successful on DSN:
'/tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/mtbs_perims.shp'
info: GDAL built without Spatialite support
Spatial functions may be unavailable in SQLite dialect.
info: open dataset successful on DSN:
'/tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/mtbs_perims.shp'
info: open dataset successful on DSN:
'/tmp/RtmpC1IgZB/working_dir/RtmpYiQVNx/mtbs_perims.shp'
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 1: Reprojection failed
[gannet:2719609:0:2729046] Caught signal 11 (Segmentation fault: address not mapped to object at address (nil))
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
*** caught segfault ***
address 0x2cd, cause 'memory not mapped'
ERROR 1: Reprojection failed
Traceback:
1: ogr2ogr(src_dsn, out_dsn, src_layers, cl_arg = args, open_options = src_open_options)
2: ogr_reproject(ynp_dsn, "roads", out_gpkg, "EPSG:32100", spat_bbox = bb)
3: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
4: withCallingHandlers(expr, condition = function(cnd) { { .__handler_frame__. <- TRUE .__setup_frame__. <- frame if (inherits(cnd, "message")) { except <- c("warning", "error") } else if (inherits(cnd, "warning")) { except <- "error" } else { except <- "" } } while (!is_null(cnd)) { if (inherits(cnd, "error")) { out <- handlers[[1L]](cnd) if (!inherits(out, "rlang_zap")) throw(out) } inherit <- .subset2(.subset2(cnd, "rlang"), "inherit") if (is_false(inherit)) { return() } cnd <- .subset2(cnd, "parent") }})
5: doTryCatch(return(expr), name, parentenv, handler)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: tryCatchList(expr, classes, parentenv, handlers)
8: tryCatch(withCallingHandlers(expr, condition = function(cnd) { { .__handler_frame__. <- TRUE .__setup_frame__. <- frame if (inherits(cnd, "message")) { except <- c("warning", "error") } else if (inherits(cnd, "warning")) { except <- "error" } else { except <- "" } } while (!is_null(cnd)) { if (inherits(cnd, "error")) { out <- handlers[[1L]](cnd) if (!inherits(out, "rlang_zap")) throw(out) } inherit <- .subset2(.subset2(cnd, "rlang"), "inherit") if (is_false(inherit)) { return() } cnd <- .subset2(cnd, "parent") }}), stackOverflowError = handlers[[1L]])
9: try_fetch({ code NULL}, `:=`(!!base_class, function(cnd) { if (!matcher(cnd)) { return(zap()) } expected <- paste0("Expected ", quo_label(enquo(object)), " to run without any ", base_class, "s", if (!is.null(class)) paste0(" of class '", class, "'"), if (!is.null(regexp)) paste0(" matching pattern '", regexp, "'"), ".") actual <- paste0("Actually got a <", class(cnd)[[1]], "> with text:\n", indent_lines(rlang::cnd_message(cnd))) message <- format_error_bullets(c(expected, i = actual)) fail(message, trace_env = trace_env)}))
10: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)), ...)
11: quasi_capture(enquo(object), NULL, capture)
12: expect_no_("error", { { object }}, regexp = message, class = class)
13: expect_no_error(lyr <- ogr_reproject(ynp_dsn, "roads", out_gpkg, "EPSG:32100", spat_bbox = bb))
14: eval(code, test_env)
15: eval(code, test_env)
16: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error)
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
20: doTryCatch(return(expr), name, parentenv, handler)
21: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
22: tryCatchList(expr, classes, parentenv, handlers)
23: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { })
24: test_code(desc, code, env = parent.frame(), reporter = reporter)
25: test_that("ogr_reproject works", { f <- system.file("extdata/ynp_features.zip", package = "gdalraster") ynp_dsn <- file.path("/vsizip", f, "ynp_features.gpkg") out_gpkg <- tempfile(fileext = ".gpkg") on.exit(unlink(out_gpkg)) expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100")) expect_equal(lyr$getFeatureCount(), 1) lyr$close() expect_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100")) expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", append = TRUE)) expect_equal(lyr$getFeatureCount(), 2) lyr$close() expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", overwrite = TRUE)) expect_equal(lyr$getFeatureCount(), 1) lyr$close() bb <- c(-111.18, 44.78, -111.03, 45.07) expect_no_error(lyr <- ogr_reproject(ynp_dsn, "roads", out_gpkg, "EPSG:32100", spat_bbox = bb)) expect_equal(lyr$getFeatureCount(), 11) lyr$close() expect_no_error(lyr <- ogr_reproject(ynp_dsn, "points_of_interest", out_gpkg, "EPSG:32100", add_cl_arg = c("-limit", "10"))) expect_equal(lyr$getFeatureCount(), 10) lyr$close() out_shp <- tempfile(fileext = ".shp") on.exit(deleteDataset(out_shp)) expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_shp, "EPSG:32100")) expect_equal(lyr$getFeatureCount(), 1) lyr$close() expect_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_shp, "EPSG:32100")) expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_shp, "EPSG:32100", append = TRUE)) expect_equal(lyr$getFeatureCount(), 2) lyr$close() expect_no_error(lyr <- ogr_reproject(ynp_dsn, "ynp_bnd", out_shp, "EPSG:32100", overwrite = TRUE)) expect_equal(lyr$getFeatureCount(), 1) lyr$close() out_json <- tempfile(fileext = ".geojson") on.exit(unlink(out_json)) sql <- "SELECT poiname, geom FROM points_of_interest\n WHERE poitype = 'Ranger Station'" expect_error(lyr <- ogr_reproject(ynp_dsn, sql, out_json, "WGS84")) expect_no_error(lyr <- ogr_reproject(ynp_dsn, sql, out_json, "WGS84", nln = "ynp_ranger_stations")) expect_equal(lyr$getFeatureCount(), 14) feat <- lyr$getNextFeature() expect_equal(g_coords(feat$geom)[1, "x"], -110.7005, tolerance = 0.001) expect_equal(g_coords(feat$geom)[1, "y"], 44.97703, tolerance = 0.001) lyr$close() if (has_spatialite()) { sql <- "SELECT poiname, ST_X(geometry) as x, ST_Y(geometry) as y\n FROM ynp_ranger_stations" expect_no_error(lyr <- ogr_reproject(out_json, sql, out_gpkg, "WGS84", nln = "ynp_ranger_stations", dialect = "SQLite")) expect_equal(lyr$getFeatureCount(), 14) feat <- lyr$getNextFeature() expect_equal(feat$x, -110.7005, tolerance = 0.001) expect_equal(feat$y, 44.97703, tolerance = 0.001) lyr$close() } shp_dsn <- system.file("extdata/poly_multipoly.shp", package = "gdalraster") expect_no_error(lyr <- ogr_reproject(shp_dsn, "", out_gpkg, "EPSG:32100", nlt = "PROMOTE_TO_MULTI")) expect_equal(lyr$getName(), "poly_multipoly") expect_equal(lyr$getFeatureCount(), 4) expect_equal(lyr$getGeomType(), "MULTIPOLYGON") expect_true(srs_is_same(lyr$getSpatialRef(), "EPSG:32100")) lyr$close() out_gpkg2 <- tempfile(fileext = ".gpkg") on.exit(unlink(out_gpkg2)) expect_error(ogr_reproject(c(ynp_dsn, shp_dsn), "ynp_bnd", out_gpkg2, "EPSG:32100")) expect_error(ogr_reproject(ynp_dsn, c("ynp_bnd", "roads"), out_gpkg2, "EPSG:32100")) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", NULL, "EPSG:32100")) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg2, NULL)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", out_fmt = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", overwrite = NULL)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", append = NULL)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", nln = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", dsco = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", lco = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", dialect = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", spat_bbox = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", src_open_options = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", progress = 1)) expect_error(ogr_reproject(ynp_dsn, "ynp_bnd", out_gpkg, "EPSG:32100", add_cl_arg = 1))})
26: eval(code, test_env)
27: eval(code, test_env)
28: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error)
29: doTryCatch(return(expr), name, parentenv, handler)
30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
31: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
32: doTryCatch(return(expr), name, parentenv, handler)
33: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
34: tryCatchList(expr, classes, parentenv, handlers)
35: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { })
36: test_code(test = NULL, code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
37: source_file(path, env = env(env), desc = desc, error_call = error_call)
38: FUN(X[[i]], ...)
39: lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call)
40: doTryCatch(return(expr), name, parentenv, handler)
41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
42: tryCatchList(expr, classes, parentenv, handlers)
43: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
44: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call))
45: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, error_call = error_call)
46: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel)
47: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
48: test_check("gdalraster")
An irrecoverable exception occurred. R is aborting now ...
==== backtrace (tid:2729046) ====
0 /lib64/libucs.so.0(ucs_handle_error+0x2e4) [0x7f9bb87b2df4]
1 /lib64/libucs.so.0(+0x17aed) [0x7f9bb87b4aed]
2 /lib64/libucs.so.0(+0x17cbd) [0x7f9bb87b4cbd]
3 /lib64/libc.so.6(+0x19c30) [0x7f9bcd92bc30]
4 /usr/local/clang/lib64/libgdal.so.36(+0x3025b9) [0x7f9bbad025b9]
5 /usr/local/clang/lib64/libgdal.so.36(_Z15OGRWKBTransformPhmP27OGRCoordinateTransformationR20OGRWKBTransformCacheR13OGREnvelope3D+0x4a) [0x7f9bbad0282a]
6 /usr/local/clang/lib64/libgdal.so.36(+0xf2377f) [0x7f9bbb92377f]
7 /usr/local/clang/lib64/libgdal.so.36(+0xf2da0c) [0x7f9bbb92da0c]
8 /usr/local/clang/lib64/libgdal.so.36(+0xf2daab) [0x7f9bbb92daab]
9 /lib64/libc.so.6(+0x711d4) [0x7f9bcd9831d4]
10 /lib64/libc.so.6(+0xf3cec) [0x7f9bcda05cec]
=================================
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 2.0.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘gdal-config-quick-ref.Rmd’ using rmarkdown
--- finished re-building ‘gdal-config-quick-ref.Rmd’
--- re-building ‘raster-api-tutorial.Rmd’ using rmarkdown
--- finished re-building ‘raster-api-tutorial.Rmd’
--- re-building ‘raster-attribute-tables.Rmd’ using rmarkdown
--- finished re-building ‘raster-attribute-tables.Rmd’
--- re-building ‘vector-api-overview.Rmd’ using rmarkdown
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
[gannet:2733993:0:2735203] Caught signal 11 (Segmentation fault: address not mapped to object at address (nil))
ERROR 1: Reprojection failed
==== backtrace (tid:2735203) ====
0 /lib64/libucs.so.0(ucs_handle_error+0x2e4) [0x7f85e89e7df4]
1 /lib64/libucs.so.0(+0x17aed) [0x7f85e89e9aed]
2 /lib64/libucs.so.0(+0x17cbd) [0x7f85e89e9cbd]
3 /lib64/libc.so.6(+0x19c30) [0x7f85ff027c30]
4 /usr/local/clang/lib64/libgdal.so.36(+0x3025b9) [0x7f85eb3025b9]
5 /usr/local/clang/lib64/libgdal.so.36(_Z15OGRWKBTransformPhmP27OGRCoordinateTransformationR20OGRWKBTransformCacheR13OGREnvelope3D+0x4a) [0x7f85eb30282a]
6 /usr/local/clang/lib64/libgdal.so.36(+0xf2377f) [0x7f85ebf2377f]
7 /usr/local/clang/lib64/libgdal.so.36(+0xf2da0c) [0x7f85ebf2da0c]
8 /usr/local/clang/lib64/libgdal.so.36(+0xf2daab) [0x7f85ebf2daab]
9 /lib64/libc.so.6(+0x711d4) [0x7f85ff07f1d4]
10 /lib64/libc.so.6(+0xf3cec) [0x7f85ff101cec]
=================================
*** caught segfault ***
address 0x4d20029b7a9, cause 'unknown'
ERROR 1: Reprojection failed
ERROR 1: Reprojection failed
SUMMARY: processing the following file failed:
‘vector-api-overview.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 2.0.0
Check: installed package size
Result: NOTE
installed size is 76.1Mb
sub-directories of 1Mb or more:
doc 1.4Mb
extdata 2.0Mb
libs 71.8Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64