I am trying to retrieve an Excel file from the internet, but the link is a download link which automatically downloads the file. I have tried to read this directly into R, but it seems to corrupt the file, and make it unreadable.
I have tried:
temp <- tempfile()
download.file("https://animaldrugsatfda.fda.gov/adafda/app/search/public/ingredientsInformationExcel/Section2ActiveIngredients",temp)
FDAAnimalApprovedDrugs <- readLines(temp)