title: How to extract sheet names from Excel file in R
body: <p>I have loaded a workbook into R and read in the worksheets using xlConnect, but I was wondering if there was a way of extracting the names of the sheets perhaps in a vector?</p>
  
  <p>So far my code is:</p>
  
  <pre><code>dataIn&lt;-loadWorkbook(file.path(filenames[1],sep=""))
  lst = readWorksheet(dataIn, sheet = getSheets(dataIn), startRow=1, startCol=1, header=TRUE)
  </code></pre>
  
  <p>...and I want to extract the sheet names of the sheets in <code>lst</code>.</p>