Do you just want a satellite image as a background? You could just use leaflet. Does it need to be Google Earth?
leaflet
You should be able to read in kml files using sf: