openxlsx::write.xlsx overwriting existing worksheet instead append
问题 The openxlsx::write.xlsx function is overwriting spreadsheet instead of adding another tab. I tried do follow some orientations of Stackoverflow, but without sucess. dt.escrita <- format(Sys.time(), '%Y%m%d%H%M%S') write.xlsx( tbl.messages ,file = paste('.\\2_Datasets\\messages_',dt.escrita,'.xlsx') ,sheetName = format(Sys.time(), '%d-%m-%y') ,append = FALSE) write.xlsx( tbl.dic.dados ,file = paste('.\\2_Datasets\\messages_',dt.escrita,'.xlsx') ,sheetName = 'Dicionario_Dados' ,append = TRUE)