Dear Wallace community,
I am currently working on a project involving environmental niche modeling and I have been using the brilliant Wallace GUI app.
I want to project models generated on present day environmental layers from bioclim onto environmental layers representing the past. For this, I extracted the session code after using the GUI and changed it to project the model on my environmental layers of the past which worked like a charm. However, I am having troubles with the step "Calculate Environmental Similarity". The problem occurs specifically at line:
proj.mess <- dismo::mess(predsProj, occEnvVals)
which returns the following error message over and over again:
no non-missing arguments to min; returning Info non-missing arguments to min; returning Infno non-missing arguments to min;
This problem is not specific to my modified session code. I generate a session code by using "3 Env Data: Module WorldClim Bioclims" and use the maxnet algorithm to build the model. Later in "8 Project" I choose “Project to New Time” and pick some layers. I make a polygon to which's extend the model is projected. I’m using Windows.
In the GUI everything works fine including the "Calculate Environmental Similarity" step. After running the unmodified resulting session code I get the same error message at step "proj.mess <- dismo::mess(predsProj, occEnvVals)" again.
I could not find a solution to this until now and would be very happy about some ideas how to solve this problem.
All the best