How do I autofit the column width using openxlsx?
openxlsx
One of my columns has a date variable (eg. 21-08-2017) and if copied using ctrl+c
21-08-2017
ctrl+c
Using XLConnect...
setColumnWidths(WB, Sheet, column = 1:ncol(DF), width = -1)
Reference: https://cran.r-project.org/web/packages/XLConnect/XLConnect.pdf