title: write.table() results in permission denied - common solutions don't work
body: <p>Can't seem to get permission to write files in R.</p>
  
  <p>Using Windows 10. Only one user account in my computer, have tried running RStudio and Rgui as administrator. <code>getwd()</code> confirms <code>'C:/Users/name/R'</code> is my working directory. I've gone to properties of the folder and SYSTEM and user have all permissions to write. Have tried changing the directory to no avail.</p>
  
  <p>Using 
      <code>write.table(dataframe, "C:/Users/name/R", sep = "|")</code> and I get the following error:</p>
  
  <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 'C:/Users/name/R': Permission denied</p>
  </blockquote>