“Out of Memory Error (Java)” when using R and XLCo

2020-01-24 07:24发布

I tried to load a ~30MB excel spreadsheet into R using the XLConnect package.

This is what I wrote:

wb <- loadWorkbook("largespreadsheet.xlsx")

And after about 15 seconds, I got the following error:

Error: OutOfMemoryError (Java): GC overhead limit exceeded.

Is this a limitation of the XLConnect package or is there a way to tweak my memory settings to allow for larger files?

I appreciate any solutions/tips/advice.

标签: excel r memory
7条回答
做个烂人
2楼-- · 2020-01-24 07:53

Follow the advice from their website:

options(java.parameters = "-Xmx1024m")
library(XLConnect)
查看更多
登录 后发表回答