ERROR in p[, 2] - CoordinateCleaner::clean_coordinates()
mgaynor1 opened this issue · comments
Line 99 in db6ee9b
This line needs to say
if(is.null(ref) | ncol(ref) = 0)
If the cropped region doesn't contain any capitals, an error will print (see photo). This can be fixed by modifying the if statement in cc_cap. Probably an issue throughout this code, sinceis.null(SpatVector)
doesn't tell you if the vector is empty.
I
Hi, this is still an issue and we would love to update our package which uses CoordinateCleaner so that we remove our spatial dependency (which is only due to CoordinateCleaner <v3). However, with the updated version, this error => failed tests. Please fix!
HI @mgaynor1, thanks for reporting the issue. It is now fixed on the GitHub version, and will soon be on CRAN.
Thanks so much!