R - Autofit Excel column width
问题 How do I autofit the column width using openxlsx ? One of my columns has a date variable (eg. 21-08-2017 ) and if copied using ctrl+c from Excel, and pasted normally elsewhere, it shows like ####### (if column width is increased to show the content in Excel, it pastes normally). I want to integrate that repeatitive task into my code. Here is what I am using right now: WB <- loadWorkbook(File) addWorksheet(WB, Sheet) writeDataTable(WB, Sheet, DF, withFilter=F, bandedRows=F, firstColumn=T)