Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message in trying to read a few rows from a large file #3

Closed
GoogleCodeExporter opened this issue Jul 19, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

I have an xlsx file with 6 sheets, 3 of which are about 9000x11 and another 3 
of which are 9000x7. Half of the sheets are data, and the other half are 
formulas

Using this type of call (to read in one of the formula sheets)

read.xlsx2(file="xxx.xlsx",sheetName="yyy",startRow=2,endRow=10)

results in this error message:

Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  : 
  java.lang.OutOfMemoryError: Java heap space

Note that I was only asking to read in a small number of rows.

BTW, I also just made the post from a few minutes ago, but under another 
address ... The file in question here has the same data structure as the one I 
just posted, but this was the real example, not the toy example I just sent. 
Because this error call may be connected to the previous issue, I didn't 
generate a file here as a test case.

Should xlsx2 be able to handle this size problem?

R 1.14.1, Windows 7, xlsx just loaded today (1/20/12) from CRAN

Original issue reported on code.google.com by Joseph.V...@gmail.com on 20 Jan 2012 at 6:34

@GoogleCodeExporter
Copy link
Author

see the FAQ on how to increase your java heap space

Original comment by adrian.d...@gmail.com on 27 Jul 2012 at 7:37

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant