I'm running into a problem with JVM memory using XLConnect (Mirai Solutions) in R.
Data loads into R just fine using loadWorkbook
or readWorksheetFromFile
, but larger data (data frames about 3MB) get stuck while being written to the JVM during export with any of the export functions (writeNamedRegion
, writeWorksheetToFile
, etc.), and R stops responding.
I've reset the java parameters using options(java.parameters = "-Xmx1500m")
, and this increased the size of the data frames I was able to export to Excel, but R still slows around 1MB and won't work around 3MB.
I'm on a 64-bit Windows 7 system with 32-bit Office software and 32-bit Java on a machine with 8GB RAM. 3MB doesn't seem very big compared to the ~750 MB free memory in the JVM that is supposedly there at the beginning of export (checked with xlcMemoryReport
).
Ideas?