I have been saving Excel files using openxlsx package and I really like it. However, saved files are in unclean version (not sure the right word), but it looks like this:
But every time, I have to open each excel file manually and set the columns so that each column is seen easily. With increasing number of files, its becoming a time consuming task. Is there a way to save file directly in clean version or in other words, I can see all columns clearly and do not need to do anything.
Thanks @yan_lyesin! script doesn't give any errors, but when I try to open the xls file, it says. "We found a problem. Would you like to recover as much as we can" and when I say Yes, then the file is fine, but still it has the same messy format as before. This is what I did based on your suggestion in case I am missing something:
Are you writing formulas in this workbook as well? Is there anything in your data that might be causing auto width to fail due to big size (more than 250) or something else in your data?
Also - how wide is your data?