bcd() fails for sf obj with POINT geometry containing a single feature. Running
p = st_sf(st_sfc(st_point(c(0,0))))
bcd(p)
throws
Error in FUN(X[[i]], ...) : !anyNA(x) is not TRUE
Reason: overlay_grid() is not able to produce the required grid successfully using sf::st_make_grid(). Would be helpful if st_make_grid() returns NULL (or does something else) instead of throwing an error.
bcd()fails for sf obj withPOINTgeometry containing a single feature. Runningthrows
Reason:
overlay_grid()is not able to produce the required grid successfully usingsf::st_make_grid(). Would be helpful ifst_make_grid()returnsNULL(or does something else) instead of throwing an error.