Assistance Required for Resolving Issue with Wallace EcoMod

84 views
Skip to first unread message

Tauheed Marwat

unread,
Jul 17, 2024, 11:17:32 AM7/17/24
to Wallace Ecological Modeling App
I hope this email finds you well.

I am currently working on an analysis using the Wallace EcoMod, but I am encountering some issues that I need help resolving. Below is the code I am using to initiate the program:

[[install.packages("devtools")
devtools::install_github("wallaceEcoMod/wallace")
library(wallace)
run_wallace()]]

However, I receive the following notifications in RStudio before the webpage opens:

[[ install.packages("devtools")
Error in install.packages : Updating loaded packages
> devtools::install_github("wallaceEcoMod/wallace")
Downloading GitHub repo wallaceEcoMod/wallace@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  :
  download from 'https://api.github.com/repos/wallaceEcoMod/wallace/tarball/HEAD' failed
> library(wallace)
Loading required package: shiny
Loading required package: leaflet
> run_wallace()

Listening on http://127.0.0.1:5593]]

The webpage does open, but when I attempt to retrieve environmental variable data from WorldClim, the screen turns grey and freezes. The error notification in RStudio is as follows:

[[Registered S3 methods overwritten by 'adehabitatMA':
  method                       from
  print.SpatialPixelsDataFrame sp  
  print.SpatialPixels          sp  
Warning in raster::getData(name = "worldclim", var = "bio", res = bcRes,  :
  getData will be removed in a future version of raster
. Please use the geodata package instead
trying URL 'https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip'
Warning in utils::download.file(url = aurl, destfile = fn, quiet = FALSE,  :
  URL 'https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip': Timeout of 600 seconds was reached
Warning: Error in utils::download.file: cannot open URL 'https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip'
  2: shiny::runApp
  1: run_wallace]]

Could you please provide guidance on how to fix this issue? Specifically, I would like to understand how to successfully download the required data and avoid the screen freezing problem.

Thank you in advance for your assistance.

Best regards,

Marwat

Wallace Ecological Modeling App

unread,
Jul 17, 2024, 12:04:48 PM7/17/24
to Wallace Ecological Modeling App
Hi Marwat,
You can try installing from CRAN if you are having issues installing from GitHub. 

install.packages("wallace")
library(wallace)
run_wallace()

Right now, v2.1.2 is on CRAN. v2.1.3 will be released soon (I hope) which has the issue you are presenting here fixed, but in the meantime you will need to use the User Specified module for loading env data.

Bethany
The Wallace Team
Reply all
Reply to author
Forward
0 new messages