I am using xlsx::addDataFrame to write 450,000 rows of a data.frame to a sheet and get the "Invalid row number" error. Can anybody tell me how to fix it? Or is there anyway to bypass this difficulty? Any command is appreciated. Thanks a lot.
addDataFrame(x,col.names=TRUE, row.names=FALSE, startRow=5, + startColumn=1, sheet=sheet2) Error in .jcall("RJavaTools", "Ljava/lang/Object;", "newInstance", .jfindClass(class), : java.lang.IllegalArgumentException: Invalid row number (65536) outside allowable range (0..65535)