ropensci / CoordinateCleaner

Automated flagging of common spatial and temporal errors in biological and palaeontological collection data, for the use in conservation, ecology and palaeontology.
https://docs.ropensci.org/CoordinateCleaner/
79 stars 21 forks source link

sea test not working #20

Closed jscamac closed 5 years ago

jscamac commented 5 years ago

First, I'd like to say fantastic work on such a useful package!

I've been playing with gbif data and the latest CRAN version of CoordinateCleaner 2.0-9 and I think I've stumbled on a minor issue with the seas test.

It looks like the link you use to the NaturalEarth data to test for whether a point is in the ocean or not is broken.

I've manually gone to that the website and I think they've changed the website...

Testing sea coordinates
trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
Error in utils::download.file(file.path(address), zip_file <- tempfile()) : 
  cannot open URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
In addition: Warning message:
In utils::download.file(file.path(address), zip_file <- tempfile()) :

 Show Traceback

 Rerun with Debug
 Error in utils::download.file(file.path(address), zip_file <- tempfile()) : 
  cannot open URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip' 
jscamac commented 5 years ago

Nevermind... I think the problem has resolved itself. I must have tried while the server was down.