title: Permission Denied error on R
body: <pre><code>write.csv(mtcars,file='firstexample.csv')
  </code></pre>
  
  <blockquote>
    <p>Error in file(file, ifelse(append, "a", "w")) :    cannot open the
    connection In addition: Warning message: In file(file, ifelse(append,
    "a", "w")) :   cannot open file 'firstexample.csv': Permission denied</p>
  </blockquote>