powered by
Remove a worksheet from a workbook
wb_remove_worksheet(wb, sheet = current_sheet())
The wbWorkbook object, invisibly.
wbWorkbook
A wbWorkbook object
The sheet name or index to remove
## load a workbook wb <- wb_load(file = system.file("extdata", "openxlsx2_example.xlsx", package = "openxlsx2")) ## Remove sheet 2 wb <- wb_remove_worksheet(wb, 2)
Run the code above in your browser using DataLab