rsMove vulnerable to forthcoming changes in sp and rgdal
rsbivand opened this issue · 2 comments
rsbivand commented
Running revdep checks for current rgdal on R-Forge - see:
https://stat.ethz.ch/pipermail/r-sig-geo/2019-November/027801.html
shows the errors in the attached check log, related to use of PROJ&/GDAL3
and required changes to sp and rgdal. If useful find a reference to a docker
image in this thread:
Changes will occur quite fast, and packages need to be prepared.
* checking examples ... ERROR
Running examples in ‘rsMove-Ex.R’ failed
The error most likely occurred in:
> ### Name: backSample
> ### Title: backSample
> ### Aliases: backSample
>
> ### ** Examples
>
> {
+
+ require(raster)
+
+ # read raster data
+ file <- list.files(system.file('extdata', '', package="rsMove"), 'ndvi.tif', full.names=TRUE)
+ r.stk <- stack(file)
+
+ # read movement data
+ data(shortMove)
+
+ # find sample regions
+ label <- labelSample(shortMove, 30, agg.radius=30, nr.pixels=2)
+
+ # select background samples (pca)
+ bSamples <- backSample(shortMove, r.stk, label, sampling.method='pca')
+
+ # select background samples (random)
+ bSamples <- backSample(shortMove, r.stk, sampling.method='random')
+
+ }
Loading required package: raster
Loading required package: sp
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO") :
Discarded datum WGS_1984 in CRS definition,
but +towgs84= values preserved
Error in labelSample(shortMove, 30, agg.radius = 30, nr.pixels = 2) :
"x" and "y" have different projections
Execution halted
rsbivand commented
Error still present, timme window for response now closing.
rsbivand commented
Error still present, rgdal to be released shortly:
* checking examples ... ERROR
Running examples in ‘rsMove-Ex.R’ failed
The error most likely occurred in:
> ### Name: backSample
> ### Title: backSample
> ### Aliases: backSample
>
> ### ** Examples
>
> {
+
+ require(raster)
+
+ # read raster data
+ file <- list.files(system.file('extdata', '', package="rsMove"), 'ndvi.tif', full.names=TRUE)
+ r.stk <- stack(file)
+
+ # read movement data
+ data(shortMove)
+
+ # find sample regions
+ label <- labelSample(shortMove, 30, agg.radius=30, nr.pixels=2)
+
+ # select background samples (pca)
+ bSamples <- backSample(shortMove, r.stk, label, sampling.method='pca')
+
+ # select background samples (random)
+ bSamples <- backSample(shortMove, r.stk, sampling.method='random')
+
+ }
Loading required package: raster
Loading required package: sp
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO") :
Discarded datum WGS_1984 in CRS definition,
but +towgs84= values preserved
Error in labelSample(shortMove, 30, agg.radius = 30, nr.pixels = 2) :
"x" and "y" have different projections
Execution halted
and
* checking re-building of vignette outputs ... WARNING
Error(s) in re-building vignettes:
--- re-building ‘resource_suitability.Rmd’ using rmarkdown
Loading required package: rsMove
Loading required package: raster
Loading required package: sp
Loading required package: rgdal
rgdal: version: 1.5-6, (SVN revision 950M)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
Path to GDAL shared files: /usr/local/share/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ.4 runtime: Rel. 7.0.0, March 1st, 2020, [PJ_VERSION: 700]
Path to PROJ.4 shared files: /home/rsb/.local/share/proj:/usr/local/share/proj:/usr/local/share/proj
PROJ CDN enabled: FALSE
Linking to sp version: 1.4-1
Loading required package: ggplot2
Loading required package: knitr
Loading required package: kableExtra
Loading required package: caret
Loading required package: lattice
Loading required package: igraph
Attaching package: 'igraph'
The following object is masked from 'package:raster':
union
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Loading required package: randomForest
randomForest 4.6-14
Type rfNews() to see new features/changes/bug fixes.
Attaching package: 'randomForest'
The following object is masked from 'package:ggplot2':
margin
Loading required package: e1071
Attaching package: 'e1071'
The following object is masked from 'package:raster':
interpolate
Quitting from lines 76-79 (resource_suitability.Rmd)
Error: processing vignette 'resource_suitability.Rmd' failed with diagnostics:
"x" and "edata" have different projections
--- failed re-building ‘resource_suitability.Rmd’