awalker89 / openxlsx

R package for .xlsx file reading and writing.
Other
365 stars 78 forks source link

Error with deleting the only worksheet and adding the new with the same name #489

Open andreyminakov opened 5 years ago

andreyminakov commented 5 years ago

Expected Behavior

if workbook has one worksheet (ws), removing the only ws and then adding a new one with the same name has to work without an error.

Actual Behavior

if workbook has one worksheet (ws), removing the only ws and then adding a new one with the same name leads to error.