R 3.2.3 : Unable to save workbook using openxlsx package
<p>I'm using <code>openxlsx</code> package to load an existing Excel workbook, then insert an image to a sheet and then save it using <code>saveWorkbook</code>. Below goes the codes. However, I'm getting error when I'm trying to save the workbook. </p>

<pre><code>require(openxlsx)
wb &lt;- loadWorkbook(xlsxFile = "WB.xlsx")
insertImage(wb, "SOA Progress", "CMD.jpg")
saveWorkbook(wb, file="writewb.xlsx", overwrite = FALSE)
</code></pre>

<p>The error is : </p>

<pre><code>Error in sprintf("&lt;Override PartName=\"/xl/%s\"ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml\"/&gt;",  : 
  object 'fn' not found
</code></pre>

<p>Any help? </p>