title: Error Reading Multiple Excel Sheets Using openxlsx package in R
body: <p>I'm trying to load an <code>Excel</code> workbook with a large number of tabs into <code>R</code>, do some analysis, and then export the results back into <code>Excel</code>. I'm using the <code>openxlsx package</code> because of some of the features of that package that are not easily accessible using other packages (such as the ability to create "<code>comments</code>" in the output file, <code>color code</code> the <code>tabs</code>, and work with <code>64-bit R</code>).</p>
  
  <p>When I try to read in the workbooks, I sometimes get the following <code>error message</code> (or something similar):</p>
  
  <pre><code>Error in unzip(xlsxFile, exdir = xmlDir) : 
    cannot open file 'C:/Users/MENDEL~1/AppData/Local/Temp/RtmpIb3WOf/_excelXMLRead/xl/worksheets/sheet5.xml': Permission denied 
  </code></pre>
  
  <p>This <code>error message</code> doesn't always show up - but sometimes it will appear and the program crashes. <br></p>
  
  <p>Does anyone have any ideas how to fix this problem? I don't know why the program sometimes thinks it doesn't have permission to access the sheets. <br></p>
  
  <p>Thank you in advance!</p>