I'm trying to download a csv file from the Our World in Data website. There are several charts at the end of the post, and each has a "Data" tab that reveals a download link.
When you click the csv downloads directly. The link to the "relative-share-of-deaths-in-usa.csv" button is "https://ourworldindata.org/e9df3be1-29e0-4366-bc14-554bb4ba8be1", but when I use this in RCurl, it downloads an html file. How can I pull into R from the site?
library (RCurl)
download <- getURL("https://ourworldindata.org/e9df3be1-29e0-4366-bc14-554bb4ba8be1")
data <- read.csv(textConnection(download))