[R-pkg-team] Bug#1049438: r-cran-rgdal: autopkgtest needs update for new version of r-cran-sp

Roger Bivand Roger.Bivand at nhh.no
Fri Aug 18 14:37:21 BST 2023


Dear Andreas,

Further, it looks as though r-cran-sf is not available at the point of failure, but may reading of your output may be guesswork. Are you turning warnings into errors? Locally, I cannot reproduce the problem with sf available for sp 2.0-0; when sf is not available, I do see problems (but more extensive than yours).

Hope this helps,

Roger

--
Roger Bivand
Emeritus Professor
Norwegian School of Economics
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway
Roger.Bivand at nhh.no

________________________________________
From: Roger Bivand <Roger.Bivand at nhh.no>
Sent: 18 August 2023 14:54
To: Andreas Tille; Paul Gevers; 1049438 at bugs.debian.org; Edzer Pebesma
Cc: Debian R
Subject: Re: Bug#1049438: r-cran-rgdal: autopkgtest needs update for new version of r-cran-sp

Dear Andreas,

No idea, but note that rgdal, rgeos, maptools and rgrass7 will be archived in October 2023.

This has been drawn to the attention of those interested on mailing lists since late 2022: https://github.com/r-spatial/evolution, https://r-spatial.org/r/2022/04/12/evolution.html, https://r-spatial.org/r/2022/12/14/evolution2.html, etc.

sp 2.0-0 by default uses sf, not rgdal, for all CRS and transformation, unless somehow you are setting an environment variable or an R option to look for rgdal instead. This option will stop working by the end of September 2023.

So the interaction you are seeing, but which I can't reproduce, is from your build of sf with your build of PROJ and GDAL in conjuction with the  new default settings of sp to use sf not rgdal.

So no updates to rgdal are going to be forthcoming, and your build system will have to move now very quickly to catch up with impending changes. rgdal will be leaving CRAN in about six weeks, you may move to forthcoming sp 2.1-0 which drops rgdal completely if that is easier.

Best wishes,

Roger

--
Roger Bivand
Emeritus Professor
Norwegian School of Economics
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway
Roger.Bivand at nhh.no

________________________________________
From: Andreas Tille <andreas at an3as.eu>
Sent: 18 August 2023 13:58
To: Paul Gevers; 1049438 at bugs.debian.org; Roger Bivand
Cc: Debian R
Subject: Re: Bug#1049438: r-cran-rgdal: autopkgtest needs update for new version of r-cran-sp

Control: tags -1 upstream
Control: forwarded -1 Roger Bivand <Roger.Bivand at nhh.no>

Hi Roger,

the CI tests in Debian uncovered some conflict between recent rgdal and
version 2.0 of sp.  As you either can see in the bug report that was
filed[1] or in a recent CI build log[2] it fails with

In CRS("+init=epsg:4326") :> sp.tr <- spTransform(sp, CRS("+init=epsg:3857"))
 sf required for evolution_status==2L
Error in spTransform(sp, CRS("+init=epsg:3857")) :
  source crs creation failed: Invalid PROJ string syntax
Calls: spTransform -> spTransform

It would be great if you could adapt rgdal to the latest version of sp.

Kind regards
    Andreas.


[1] https://bugs.debian.org/1049438
[2] https://salsa.debian.org/r-pkg-team/r-cran-rgdal/-/jobs/4562837#L790

--
http://fam-tille.de/



More information about the R-pkg-team mailing list