title: Warning message: In file(file, "rt")
body: <p>I am trying to <strong>import CSV files to graph for a project</strong>. I'm using <strong>R</strong> 2.15.2 on a Mac OS X.</p>
  
  <ul>
  <li><p>The first way tried </p>
  
  <p>The script I'm trying to run to import the CSV file is this: </p>
  
  <pre><code>group4 &lt;- read.csv("XXXX.csv", header=T)
  </code></pre>
  
  <p>But I keep getting this error message: </p>
  
  <pre>
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    object 'XXXXXX.csv' not found 
  </pre></li>
  <li><p>The second way tried </p>
  
  <p>I tried moving my working directory but got another error saying I can't move my working directory. So I went into <code>Preferences</code> tab and changed the working directory to the file that has my CSV files. But I still get the same error(as the first way). </p></li>
  <li><p>The third way tried </p>
  
  <p>Then I tried this script:</p>
  
  <pre><code>group4 &lt;- read.table(file.choose(), sep="\t", header=T)
  </code></pre>
  
  <p>And I get this error: </p>
  
  <pre>
  Warning message: 
  In read.table(file.choose(), sep = "\t", header = T) :
    incomplete final line found by readTableHeader on '/Users/xxxxxx/Documents/Programming/R/xxxxxx/xxxxxx.csv' 
  </pre></li>
  </ul>
  
  <p>I've searched on the <strong>R</strong> site and all over the Internet, and nothing has got me to the point where I can import this simple CSV file into the <strong>R</strong> console. </p>