st_coordinates()
sf
inla()
To apply the closest neighbour method, we used terra::voronoi() and stayed with {terra}.
terra::voronoi()
{terra}
For the IDW & nearest neighbour method, gstat::gstat() is used to define the interpolation algorithm.
gstat::gstat()