Specify download folder in RSelenium
<p>I am using <code>RSelenium</code> to navigate towards a webpage which contains a button to download a file. I use RSelenium to click this button which downloads the file. However, the files are by default downloaded in my folder 'downloads', whereas I want to file to be downloaded in my working directory. I tried specifying a chrome profile as below but this did not seem to do the job:</p>

<pre><code>wd &lt;- getwd()
cprof &lt;- getChromeProfile(wd, "Profile 1")
remDr &lt;- remoteDriver(browserName= "chrome", extraCapabilities = cprof) 
</code></pre>

<p>The file is still downloaded in the folder 'downloads', rather than my working directory. How can this be solved?</p>