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

BIOCLIM won't run/Error with ENMeval #350

Closed rskearney closed 3 years ago

rskearney commented 3 years ago

I am using wallace as part of an assignment for school and came across this issue. I was able to get through most of the application without a hick-up but when I got to tab 6 and tried to run BIOCLIM it failed. The shiny app had a grey semi-transparent overlay and the buttons stopped working (Screenshot 1). In the console of R studio, I got the following error message:

"Warning: Error in : 'corrected.var' is not an exported object from 'namespace:ENMeval'" (Screenshot 2)

I did a little research and found out that ENMeval had been updated to version 2.0.0 on 5/19/2020 (the same day that I was trying to run wallace). Reviewing the release news indicate that this update includes a "Complete redesign of nearly all functionality." Is it possible that the developers of ENMeval changed how 'corrected.var' functions and this change is throwing of wallace? I am not positive, but this might be why wallace failed to run BIOCLIM.

I was running wallace in R studio and using R version 4.1.0 x64. I also tried using 4.0.5 and ENMeval version 0.3.1.

Screenshots: 5 Screenshot 1

screenshot Screenshot 2

gepinillab commented 3 years ago

Hi @rskearney,

The new version of ENMeval has some changes that make Wallace break. We already were aware of this problem and submit a fix to CRAN a couple of days ago. Unfortunately, It is taking longer than we expect. In the meantime, you can install Wallace from GitHub; this needs to fix the issue. You can use the following code:

remotes::install_github("wallaceecomod/wallace")

Please let us know if this fixes the issue. Also, I will let you know when the new Wallace version is updated on CRAN.

Best, Gonzalo

gepinillab commented 3 years ago

Hi @rskearney,

The Wallace version that fixes the problem is on CRAN (https://cran.r-project.org/web/packages/wallace/index.html). Please update Wallace and let us know if this fixes the problem.

Best, Gonzalo

rskearney commented 3 years ago

Hi @gepinillab,

Sorry for the delay. I followed your instructions and after installing two additional packages, "ecospat" and "rangeModelMetadata", I was able to run the BIOCLIM model without any issues. See Screenshots for the two errors and the packages that I needed to install. Thanks for your help. Let me know if you have any questions.

Screenshots: testing_wallace testing_wallace2

Best, Rob

gepinillab commented 3 years ago

Hi Rob,

Thanks for reporting the issues regarding ecospat and rangeModelMetadata. Both packages are suggested to install on ENMeval. @jamiemkass please take a look at this problem.

I will proceed to close this issue. @rskearney let us know if you have problems in the future.

Best, Gonzalo

jamiemkass commented 3 years ago

For reference, please download ENMeval 2.0.1 from the Github repo master branch to fix these issues.