need help with Haversine function

You need to include the libraries you're using inside your reprex.