title: Cant export a large data frame to xlsx in R
body: <p>Getting an error when I export a 27k row, 200 column data.frame to an xlsx.</p>
  
  <pre><code>Error in .jcheck(silent = FALSE) : 
    Java Exception &lt;no description because toString() failed&gt;.jcall(row[[ir]],  
    "Lorg/apache/poi/ss/usermodel/Cell;", "createCell", as.integer(colIndex[ic] - 1))
    &lt;S4 object of class "jobjRef"&gt;
  </code></pre>
  
  <p>I have no idea how to fix this error.. any help?</p>
  
  <p>EDIT</p>
  
  <p>I cleared a ton of memory and got this error now</p>
  
  <pre><code>Error in .jnew("org/apache/poi/xssf/usermodel/XSSFWorkbook") : 
    Java Exception &lt;no description because toString() failed&gt;.jnew("org/apache/poi/xssf/usermodel/XSSFWorkbook")&lt;S4 object of class "jobjRef"&gt;
  </code></pre>