title: R: Can't parse files due to Timeout problem
body: <p>I have a dataframe with source names and links. These links give me access to databases that I need to download.</p>
  <p>I сreated a parser that downloads files into a directory with a corresponding source name:</p>
  <pre><code>options(timeout = 10^12)
  
  parse_db &lt;- function(links,
                       begin = &quot;data_raw/&quot;,
                       end = &quot;.db&quot;,
                       pref = &quot;export-&quot;,
                       suf = links_table$source,
                       n = 65){
    for (i in 1:n) {
      download.file(url = links[i],
                    destfile = str_c(begin, paste(pref, suf[i], sep = &quot;&quot;), end, sep = &quot;&quot;),
                    mode = &quot;wb&quot;)
    }
  }
  </code></pre>
  <p>R downloads first 11 links and then says that it cannot reach next link (<code>Can't open the URL...</code>) and the serever's time is out. I wonder why does this problem occur beacause I've set the global timeout options.</p>
  <p>What am I doing wrong? May be it is possible to set a sleep time (or increase the timeout) for each iteration?</p>