I am facing an error in R while trying to use read.xlsx
function from package xlsx
. Error says "
Error in
.jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
: java.lang.OutOfMemoryError: Java heap space
I have tried using openxlsx
package and it works fine but I want to use xlsx
package only. I have also tried setting java parameters to increase the heap space after unloading all the packages from R session but it doesn't work. I am using 32 bit R, 32 bit Java on a 64 bit system and have declared all possible paths in my environment variables.
Thanks a lot for the help!