i worked on that problem for a while and can´t find anny solution. I try to using R to download a pdf/epub file from an nginx server. Link to website
Usually R provide for that purpose the download.file
function. But that dosn´t work because you need the direct path to pdf file. The server provides the usuall Downloadbutton, to trigger the download. When I look on the the html-code, i see the following for the button-item
<input id="btn_download" value="Download File" type="submit">
I found some stuff here that handle the same problem but for Javascript Trigger Download. From this point i came to the R-package "rJava" but it looks very complicated to me. So I start to experiment with the "rMouse" package, but than you need to call the page directly in a browserwindow to solf the triggerproblem. Is there some package/function that can help me to automate to solve these requestformula from the server. I would be happy for help.