awalker89 / openxlsx

R package for .xlsx file reading and writing.
Other
364 stars 79 forks source link

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

Open andreyminakov opened 4 years ago

andreyminakov commented 4 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.