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

ConR vulnerable to forthcoming changes in sp and rgdal #5

Closed
rsbivand opened this issue Nov 16, 2019 · 1 comment
Closed

ConR vulnerable to forthcoming changes in sp and rgdal #5

rsbivand opened this issue Nov 16, 2019 · 1 comment
Assignees

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 test errors below, related to use of PROJ&/GDAL3
and required changes to sp and rgdal. If useful find a regerence to a docker
image in this thread:

r-spatial/discuss#28

Changes will occur quite fast, and packages need to be prepared.


R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(testthat)
> library(ConR)
Loading required package: raster
Loading required package: sp
> 
> test_check("ConR")
Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
── 1. Error: EOO.computing (@test-2.R#11)  ─────────────────────────────────────
NA
Backtrace:
  1. ConR::subpop.comp(dataset.ex, Resol_sub_pop = 25)
  2. base::lapply(list_data, function(x) .subpop.comp(x, Resol_sub_pop = Resol_sub_pop))
  3. ConR:::FUN(X[[i]], ...)
  4. ConR::.subpop.comp(x, Resol_sub_pop = Resol_sub_pop)
 11. raster::crs("+proj=cea +lon_0=Central Meridian+lat_ts=Standard Parallel+x_0=False Easting+y_0=False Northing +ellps=WGS84")
 12. raster:::.local(x, ...)
 13. raster::projection(x, asText = asText)
 14. sp::CRS(x)


  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |============                                                          |  17%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string

  |                                                                            
  |=======================                                               |  33%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string

  |                                                                            
  |===================================                                   |  50%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string

  |                                                                            
  |===============================================                       |  67%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string

  |                                                                            
  |==========================================================            |  83%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string

  |                                                                            
  |======================================================================| 100%Error in showSRID(uprojargs, format = "PROJ", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
Error in showSRID(uprojargs, format = "WKT2", multiline = "NO") : 
  Can't parse PROJ.4-style parameter string
── 2. Error: IUCN.eval (@test-3.R#11)  ─────────────────────────────────────────
task 1 failed - "NA"
Backtrace:
 1. ConR::IUCN.eval(dataset.ex, country_map = land)
 2. `%d%`(...)
 3. e$fun(obj, substitute(ex), parent.frame(), e$data)

══ testthat results  ═══════════════════════════════════════════════════════════
[ OK: 6 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 2 ]
1. Error: EOO.computing (@test-2.R#11) 
2. Error: IUCN.eval (@test-3.R#11) 

Error: testthat unit tests failed
Execution halted
@rsbivand
Copy link
Author

rsbivand commented Mar 31, 2020

rgdal is due to be released very soon. Please fix this problem asap.

* checking tests ... ERROR
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
    Can't parse PROJ.4-style parameter string
  ── 2. Error: IUCN.eval (@test-3.R#11)  ─────────────────────────────────────────
  task 1 failed - "NA"
  Backtrace:
   1. ConR::IUCN.eval(dataset.ex, country_map = land)
   2. `%d%`(...)
   3. e$fun(obj, substitute(ex), parent.frame(), e$data)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 6 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: EOO.computing (@test-2.R#11) 
  2. Error: IUCN.eval (@test-3.R#11) 
  
  Error: testthat unit tests failed
  Execution halted

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

2 participants