ropensci / CoordinateCleaner

Automated flagging of common spatial and temporal errors in biological and palaeontological collection data, for the use in conservation, ecology and palaeontology.
https://docs.ropensci.org/CoordinateCleaner/
79 stars 21 forks source link

Check for range_rad is incorrect #85

Closed joelnitta closed 1 year ago

joelnitta commented 1 year ago

There is a bug in clean_coordinates() where the check for the range_rad argument is wrong: it issues an error if range_rad is not NULL, when the error should be if rand_rad is NULL:

https://github.com/ropensci/CoordinateCleaner/blob/93364d0acfcc40ae0b46a0c7b99b7ced7bffe53d/R/clean_coordinates.R#L345-L346

BrunoVilela commented 1 year ago

Hi @joelnitta! thanks for pointing this out. The issue has now been fixed in the new version available on Github.