title: Permission Denied Error when downloading a file
body: <p>I am trying to download an excel zip file into a R Project folder that I have started. I'm new to R so I'm a little puzzled at the error message that I'm receiving. </p>
  
  <p>The file is an excel file and so first I created a variable for the file:</p>
  
  <pre><code>excel2file="http://op.nsf.data/dataFiles/Housing2013EXCEL.zip"
  </code></pre>
  
  <p>Then I used the coding: </p>
  
  <pre><code>download.file(excel2file, destfile= "~/Home/Documents/Data")
  </code></pre>
  
  <p>I receive this error message: </p>
  
  <pre><code>Error in download.file(excel2file, destfile = "~/Home/Documents/Data") : 
    cannot open destfile '~/Home/Documents/Data', reason 'Permission denied'
  </code></pre>
  
  <p>I tried looking at other examples of permission denied and I think it may be my destination file but I am not sure why or the steps to trouble shoot it.  </p>