I try to write a df to an existing excel file by using write.xlsx(df, filename.xlsx, sheetName=123, append=TRUE). After run the code two times, R studio encountered a fatal error, and I have to uninstall Rsudio and reinstall it. But I still have the same problem after re-installation.
If I write the df to a new excel file by write.xlsx(df, name.xlsx, sheetName = 123, col.names = TRUE), the code will be totally fine. No such problem ever.
Anyone can tell me how to solve this problem? I appreciate!