Closed thk686 closed 5 years ago
Thanks, Tim! Shoudl work now!
@edzer are there any plans for the CRAN updates soon? I teach a geostatistics course starting October and it would be great to use sf + stars there.
submitted to CRAN ...
Hi @edzer, sorry for bothering you again - are there any news related to the gstat CRAN update?
Thanks; uploaded again, let's see.
... on its way to CRAN now..
I am seeing:
Error in if (!sf::st_is_longlat(locations)) { : missing value where TRUE/FALSE needed
in krige
eg zinc.nvd <- krige(zinc ~ 1, locations = meuse, newdata = meuse.grid)
Edit:
OK. Looking at this again, I see the error. "st_is_longlast" returns NA if there is no CRS, so this statement is incorrect. You need:
if(is.na(sf::st_is_longlat(locations) || !sf::st_is_longlat(locations)) { ....