Not really.
The code works by steps:
- Create/Load the "workbook" object .
- Create the worsheets where you want to write.
- Write in the desired worksheet the object you want to export.
- Save the excel file.
For example, supose you want to export the object named "table_yyz" in the file "mydata.xlsx", and using the worksheet "Data_1"
wb=CreateWorkbook()
addWorksheet(wb, "Data_1")
writeData(wb, "Data_1", tabla_yyz, startCol = 2, startRow = 3, rowNames = TRUE)
saveWorkbook(wb, "mydata.xlsx", overwrite = TRUE)
In WriteData I am exporting on B3.
That's the code.
Remember, with openxlsx you will forget about Java issues when you export some excel file.