title: Create an empty workbook in r
body: <p>I'd like to create an empty workbook and save as <code>workbook.xlsx</code>, so that I can write data into multiple sheets in this workbook in the next step.</p>
  
  <p>I used <code>loadWorkbook</code> with package <code>XLConnect</code>. Document says:</p>
  
  <pre><code># Load workbook (create if not existing)
  loadWorkbook("workbook.xlsx", create = TRUE)
  </code></pre>
  
  <p>However, it doesn't work. </p>
  
  <pre><code>Error in loadWorkbook("workbook.xlsx", create = TRUE) : 
    unused argument (create = TRUE)
  </code></pre>
  
  <p>I also used <code>createWorkbook</code> with package <code>xlsx</code>. It gives me back a workbook with class <code>jobjRef</code>.</p>
  
  <pre><code>wb &lt;- xlsx::createWorkbook(type="xlsx")
  &gt; class(wb)
  [1] "jobjRef"
  attr(,"package")
  [1] "rJava"
  </code></pre>
  
  <p>Where did I do wrong? Thanks!</p>