I am trying to reproduce the answer to this question: Using R to "click" a download file button on a webpage.
The below code does work and downloads the con