Closed as not planned
Closed as not planned
Description
We are observing this test failure:
── Error ('test-coord_sf.R:290'): sf_transform_xy() works ──────────────────────
Error in `proj_from_crs(from)`: no arguments in initialization list: GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
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["unknown"],
AREA["World"],
BBOX[-90,-180,90,180]],
ID["EPSG",4326]]
Backtrace:
▆
1. └─ggplot2::sf_transform_xy(data, 3347, 4326) at test-coord_sf.R:290:2
2. └─sf::sf_project(...)
3. └─sf (local) proj_from_crs(from)
Probably this is related to missing certain GDAL drivers. But I hope you agree the error message is not very helpful. I'm not sure if this is something on the ggplot2 or the sf side; I know sf offers some things we could use to escape here e.g. sf_extSoftVersion()
or is_driver_available()
:
Happy to offer more details as needed but I'm not sure what would help.
FWIW, the issue also causes some examples to fail:
Lines 125 to 162 in 519bc83
ggplot2/man/sf_transform_xy.Rd
Lines 27 to 43 in 519bc83