You want to get users of your R script as close to the data used for analysis as you can, but download.file() isn't going to cut it. There's no obvious direct link to the CSV and what you're left with is an anchor tag backed by a javascript function.
So, we need to click this element to initiate a download.
Enter RSelenium, an R package that interfaces with the browser driving selenium.
First, get curl and java.