-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in getting distribution data for species endemic to a single region #53
Comments
Confirmed. Thanks for the report and the reprex, very much appreciated. I am now investigating this. |
@wajra it should be ok now
you'd need to use the dev version for some time, but I am planning on releasing a patched version on CRAN soon. Again thanks for the report. Let me know if everything is working on your side, so I can close 😄 ! |
Hello Kevin, I just installed the dev version and the issue appears to be fixed. Thank you very much for being so quick to respond. Thanks again. |
I was testing the packages using a few species native to Sri Lanka and I consistently ran into the same issue. It appears that when a species is endemic to a single region, 'rcites::spp_distributions' doesn't return a valid value.
I've illustrated the issue below.
If we take the 'Red Slender Loris' (Loris tardigradus), a Loris species native to the rainforests of Sri Lanka and try to get it's distribution, the package throws an error.
The error is as follows
Error in apply(tmp[, !colnames(tmp) %in% c("tags", "references")], 2, : dim(X) must have a positive length
However, if we take the Asian Elephant (Elephas maximus), which is found across several Asian regions, there is no such error.
Thank you for your time. I hope this issue is solvable or I made an honest mistake.
The text was updated successfully, but these errors were encountered: