…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.
…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, thereturn
function doesn't include theoccs.sel
object. So currently, the function returns NULL in this case.