title: Getting error in file(file, "rt"): cannot open the connection
body: <p>I am running the following code...</p>
  
  <pre><code>#Create a list of all the files
  file.list &lt;- list.files(path="~/R/natural-language-processing/class-notes", pattern=".csv")
  
  #Loop over file list importing them and binding them together
  D1 &lt;- do.call("rbind",lapply(file.list, read.csv, header = TRUE, stringsAsFactors = FALSE))
  </code></pre>
  
  <p>This is the error I get when I run <code>do.call</code> line above.</p>
  
  <blockquote>
    <p>Error in file(file, "rt") : cannot open the connection</p>
  </blockquote>
  
  <p>I've tried resetting my wd. My current <code>getwd()</code> is </p>
  
  <pre><code>~/R/natural-language-processing
  </code></pre>
  
  <p>I've looked through the other </p>
  
  <blockquote>
    <p>Error in file(file, “rt”): cannot open connection</p>
  </blockquote>