title: Cannot read file into R
body: <p>I'n a new R user and  I'm trying to read my file P506A-data-time-v3.csv into R, however it responds with:</p>
  
  <pre><code>Error in file(file, "rt") : cannot open the connection
  In addition: Warning message:
  In file(file, "rt") : cannot open file '
  P506A
  -
  data
  -
  time
  .csv': Invalid argument
  </code></pre>
  
  <p>I changed the directory to the folder on my computer that the file was saved in.</p>
  
  <p>So I looked up other similar questions and people said to use choose.file, however I think I entered it in correctly. The result R gave me was:</p>
  
  <pre><code>&gt; file.choose
  function (new = FALSE) 
  .Internal(file.choose(new))
  &lt;bytecode: 0x07c80118&gt;
  &lt;environment: namespace:base&gt;
  &gt; P506A
  Error: object 'P506A' not found
  &gt; -
  + data
  Error in -data : invalid argument to unary operator
  &gt; -
  + timeP506A-data-time-v3&lt;-read.table(file.choose(),header=T,sep="\t") 
  
  Error in -timeP506A - data - time - v3 &lt;- read.table(file.choose(), header = T,  :
  
    object 'timeP506A' not found
  
  In addition: Warning message:
  
  In read.table(file.choose(), header = T, sep = "\t") :`enter code here`
  
    incomplete final line found by readTableHeader on 'D:\Uni\114\Probelm Solving 
  </code></pre>
  
  <p>So it seems like a complicated problem too me, so any help with figuring out how to get R to read my file would be very much appreciated.</p>
  
  <p>Thanks</p>