Using the stars package, it is possible to the st_extract() function to extract values from a raster at defined locations.
stars
st_extract()