title: Why are permissions denied writing this file from R?
body: <p>I am trying to export some data from R to .csv. It was working yesterday but today I got this error message:</p>
  <pre><code>Error in file(file, ifelse(append, &quot;a&quot;, &quot;w&quot;)) : 
    cannot open the connection
  In addition: Warning message:
  In file(file, ifelse(append, &quot;a&quot;, &quot;w&quot;)) :
    cannot open file 'C:/Users/cgarf/Documents/OTL_Model': Permission denied
  </code></pre>
  <p>I recently changed java versions. I'm not sure if that could be causing the issue or if I'm missing something</p>