st_coordinates()
sf
inla()
To apply the closest neighbour method, we used terra::voronoi() and stayed with {terra}.
terra::voronoi()
{terra}