wallaceEcoMod / wallace

an interactive, reproducible, expandible, instructional, and open-source GUI-based app for ecological niche modeling
https://wallaceecomod.github.io/
GNU General Public License v3.0
132 stars 46 forks source link

Error on "Load Env Data" #367

Closed vijaybarve closed 1 year ago

vijaybarve commented 2 years ago

Warning in utils::download.file(url = aurl, destfile = fn, quiet = FALSE,  :
  InternetOpenUrl failed: 'A connection with the server could not be established'
Warning: Error in utils::download.file: cannot open URL 'https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_10m_bil.zip'`````
gepinillab commented 2 years ago

Dear Vijay,

It looks like Worldclim servers are in maintenance until April 6 (https://www.worldclim.org/data/index.html). Wallace is using raster::getData to get these rasters.

In the meantime, you can use the user-specified module to upload the data. You can download 10´ or 5´ rasters from: https://www.dropbox.com/sh/vyym811vgkpxtj7/AABtLX1o3xF1Sg9n0GLS7rDYa?dl=0

Best, Gonzalo

hannahlowens commented 2 years ago

Hi Gonzalo, It seems the user-specified module for environmental data is working fine on Macs, but some folks with Windows machines hit an error after the models are generated. The GUI grays out and this is the output they get in RStudio:

ENMevaluate completed in 5 minutes 42.9 seconds.
Warning: Error in Math.data.frame: non-numeric variable(s) in data frame: cbi.train
  2: shiny::runApp
  1: run_wallace

Any suggestions?

hannahlowens commented 2 years ago

Hi Gonzalo, It seems the user-specified module for environmental data is working fine on Macs, but some folks with Windows machines hit an error after the models are generated. The GUI grays out and this is the output they get in RStudio:

ENMevaluate completed in 5 minutes 42.9 seconds.
Warning: Error in Math.data.frame: non-numeric variable(s) in data frame: cbi.train
  2: shiny::runApp
  1: run_wallace

Any suggestions?

In case anyone else runs into this second problem--it can be fixed by updating to the latest version of R and reinstalling Wallace.

gepinillab commented 2 years ago

Thanks @hannahlowens for posting the solution.