R Terra Package – Equivalent Function to isLonLat for Coordinate Checks

rastersfstarsterra

I am refactoring my code which extensively relied on raster package to now use the newer and better terra package. I was making use of the isLonLat() function that returns TRUE if the crs of a raster object is angular and FALSE if it's planar.

Is there a way to do this using terra instead?

I want to make my code future-proof and the reliance of this function on the now deprecated proj4string is not acceptable.

Related Question