title: Change identity in R using function download.file()
body: <p>Currently I'm downloading files with R and use <code>download.file()</code> function. </p>
  
  <p>I tried to configure everything similar to <code>getURL()</code>, but it doesn't work for <code>download.file()</code>.</p>
  
  <pre><code>library(RCurl)
  curl = getCurlHandle()
  curlSetOpt(proxy="127.0.0.1:9150", proxytype=5, curl=curl)
  
  url &lt;- "http://smth.com"
  
  download.file(getURL(url,curl=curl),destfile, method = "auto", 
                quiet = FALSE, mode = "wb", cacheOK = TRUE, 
                extra = getOption("download.file.extra"))
  
  Error in download.file(getURL(url, curl = curl), destfile, method = "auto",  : 
  unsupported URL scheme
  </code></pre>
  
  <p>Could you please help me with changing my identity?</p>