title: why method = 'curl' is not working in download.file in R?
body: <p>I am working in R.I want to download an excel file from web and I am using download.file command:</p>
  
  <pre><code>download.file(url = "http://www.jaredlander.com/data/ExcelExample.xlsx",
            destfile="data/ExcelExample.xlsx",method='curl')
  </code></pre>
  
  <p>But when I try to run the code it displays an error as:</p>
  
  <blockquote>
    <p>download.file(url = "<a href="http://www.jaredlander.com/data/ExcelExample.xlsx" rel="nofollow noreferrer">http://www.jaredlander.com/data/ExcelExample.xlsx</a>",
    +               destfile="data/ExcelExample.xlsx",method='curl')
    Error in download.file(url = "<a href="http://www.jaredlander.com/data/ExcelExample.xlsx" rel="nofollow noreferrer">http://www.jaredlander.com/data/ExcelExample.xlsx</a>",  : 
      'curl' call had nonzero exit status.</p>
  </blockquote>