Clash when exporting excel file using “xlsx” and “openxlsx” packages in R
问题 I have a data which has a size similar to "a" below library(openxlsx) a <- list() names(a) <- paste("sheet", seq_along(fulldata), sep="_") ### name for each sheet for (i in 1:172) { a[[i]] <- matrix(i,30,60) } write.xlsx(a, "a.xlsx") If I run the code above, few seconds later, R closes automatically. library(xlsx) options(java.parameters = "-Xmx4000m") a <- list() for (i in 1:172) { a[[i]] <- matrix(i,30,60) } n <- paste("sheet", seq_along(fulldata), sep="_") ### name for each sheet for (i in