title: Request URL failed/timeout in R
body: <p>I'm trying to get a csv file from a url but it seems to be timing out after one minute. The csv file is being created at the time of the request so it needs a little more than a minute. I tried to increase the timeout but it didn't work, it still fails after a minute.</p>
  
  <p>I'm using <code>url</code> and <code>read.csv</code> as follows:</p>
  
  <pre><code># Start the timer
  ptm &lt;- proc.time()
  urlCSV &lt;- getURL("http://someurl.com/getcsv", timeout = 200)
  txtCSV &lt;- textConnection(urlCSV)
  csvFile &lt;- read.csv(txtCSV)
  close(txtCSV)
  # Stop the timer
  proc.time() - ptm
  </code></pre>
  
  <p>resulting log:</p>
  
  <pre><code>Error in open.connection(file, "rt") : cannot open the connection
  In addition: Warning message:
  In open.connection(file, "rt") :
  cannot open: HTTP status was '500 Internal Server Error'
  
  user  system elapsed 
  0.225   0.353  60.445
  </code></pre>
  
  <p>It keeps failing when it reach one minute, what could be the problem? Or how do I increase the timeout?</p>
  
  <p>I tried the url in a browser and it works fine but it takes more than a minute to load the csv</p>