How do i set a timeout for utils::download.file() in R
<p>I'm trying to download a file that requires more than 60 seconds using download.file() function. The documentation mentions the timeout option e.g.</p>

<blockquote>
  <p>The timeout for many parts of the transfer can be set by the option timeout which defaults to 60 seconds.</p>
</blockquote>

<p>When i try to set it i get an error message</p>

<pre><code>download.file("https://server/FileURL", destfile = "file.xml", timeout = 444)
</code></pre>

<p>Example Message</p>

<pre><code>unused argument (timeout = 444)
</code></pre>