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

Added `occs.sel` to the return() in the `poccs_selectOccs` function. … #418

Closed mlammens closed 4 months ago

mlammens commented 5 months ago

…Without this, the function returns NULL in some circumstances in the Rmd code generated from a session.

In the case where a selection polygon includes all of the possible points, this function should return the original occurrence object. It doesn't currently do this (at least when running the analysis using the generated Rmd file), because for this if scenario, the return function doesn't include the occs.sel object. So currently, the function returns NULL in this case.