# NOT RUN {
# mtcars xlsx file from demoFiles subfolder of package XLConnect
mtcarsFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")
# Load workbook
wb <- loadWorkbook(mtcarsFile)
# Remove the worksheet called 'mtcars' from the above file
removeSheet(wb, sheet = "mtcars")
# }
Run the code above in your browser using DataLab