I'm trying to add 10 more rows at the end of an excel table (currently 27k rows long)
options(java.parameters = "-Xmx4g" ) ;
library(XLConnect) ;
writeWorksheetToFile("H:/R/myfile.xlsx",DataTable,sheet="Sheet1",startRow=row1,startCol=1,header=FALSE,rownames=FALSE)
after some seconds I receive the error
OutOfMemoryError (Java) : Java heap space
How can I fix this? Shouldn't options(java.parameters = "-Xmx4g" ) work?
Try using openxlsx package. I had problems with XLConnect and Java.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.