Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsMove vulnerable to forthcoming changes in sp and rgdal #4

Open
rsbivand opened this issue Nov 16, 2019 · 2 comments
Open

rsMove vulnerable to forthcoming changes in sp and rgdal #4

rsbivand opened this issue Nov 16, 2019 · 2 comments

Comments

@rsbivand
Copy link

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:

r-spatial/discuss#28

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
Copy link
Author

rsbivand commented Feb 4, 2020

Error still present, timme window for response now closing.

@rsbivand
Copy link
Author

rsbivand commented Apr 1, 2020

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’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant