Skip to content

incomplete final line found by readTableHeader on 'test.csv'

2 messages · chuck.01, Berend Hasselman

#
Hello, 
I have recently had issues with read.csv where i get the following warning,
and this happens on both my OSX and Linux machines.   Here is the warning
and an example CSV file is attached:

Warning message:
In read.table(file = file, header = header, sep = sep, quote = quote,  :
  incomplete final line found by readTableHeader on 'test.csv'

  http://   http://r.789695.n4.nabble.com/file/n4396383/test.csv test.csv 

I don't quite understand.  Any thoughts are appreciated. 



--
View this message in context: http://r.789695.n4.nabble.com/incomplete-final-line-found-by-readTableHeader-on-test-csv-tp4396383p4396383.html
Sent from the R help mailing list archive at Nabble.com.
#
On 17-02-2012, at 05:58, chuck.01 wrote:

            
Exactly what the message says: the last line of your file doesn't end with a EOL character.
In your case with a linefeed.

Searching with R Site Search on the message gives a lot of results.

Goto to the end of the last line of the file in your editor and press Return and svae.

Berend