I am trying to export the data into excel using xlsx package.
Here is the code and error:
library('xlsx')
write.xlsx(data1, "data1.xlsx")
Error in .jcheck(silent = FALSE) :
Java Exception <no description because toString() failed>.jcall(row[[ir]], "Lorg/apache/poi/ss/usermodel/Cell;", "createCell", as.integer(colIndex[ic] - 1))<S4 object of class "jobjRef">
I have about 850,000 rows with 40 variables.Any suggestions for handling error would be helpful.