I wanted to write out some data to xlsx file using a template xlsx file with pre-designed formatting. I have already read the previous question: "Write from R into template in excel while preserving formatting". But the answer propose the use of XLConnect package which is not compatible with my environment as I am already using xlsx package. These two packages cannot be loaded at the same time due to the different Apache POI versions.
I wanted to ask what equivalent functions may exist outside the XLConnect package to loadWorkbook
or setStyleAction
which was mentioned as answer in the previous question as follows:
wb <- loadWorkbook("test.xlsx", create=TRUE)
setStyleAction(wb,XLC$"STYLE_ACTION.NONE")