I am using the following R code (that utilizes the Java parameter to increase memory as well):
library(xlsx)
options(java.parameters = "-Xmx1g")
library(XLConnect)
NiVe <- read.xlsx("version1.xlsx",1)
The version1.xlsx
file is 13 MB in size. I get the following error:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.OutOfMemoryError: Java heap space
Can someone help?
xlsx
package and have moved toreadxl
, which is faster – Tartrazine