title: Error in file(description = xlsxFile) : invalid 'description' argument when using lapply
body: <p>I used the below the below code to extract data from multiple excel worksheets in the same folder, from sheets with the name 'table'. This code was working for me a week ago,</p>
  <pre><code>library(readxl)
  library(openxlsx)
  
  path = &quot;S:\\YJB\\Shared\\corpdata\\Community Division\\Team\\Divisional BAU\\21. Serious Incidents from June 2021\\Serious Incidents Notification Forms\\All_Data&quot;
  filenames &lt;- dir(path, pattern =&quot;*.xlsx&quot;)
  filenames &lt;- paste(&quot;S:\\YJB\\Shared\\corpdata\\Community Division\\Team\\Divisional BAU\\21. Serious Incidents from June 2021\\Serious Incidents Notification Forms\\All_Data\\&quot;, filenames, sep = &quot;&quot;)
  
  SheetList &lt;- lapply(&quot;Table&quot;,openxlsx::read.xlsx,xlsxFile=filenames)
  </code></pre>
  <p>but now when run the line</p>
  <pre><code>SheetList &lt;- lapply(&quot;Table&quot;,openxlsx::read.xlsx,xlsxFile=filenames)
  </code></pre>
  <p>I get the error message</p>
  <pre><code>Error in file(description = xlsxFile) : invalid 'description' argument
  </code></pre>
  <p>Can anyone advise me what is happening</p>
  <p>Thanks</p>