[R] incomplete final line found by readLines on ...

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Fri 30 Jun 2006 - 23:18:40 EST


Dear R-users

I need to read some text files produced by some other software. I used readLines (with n = -1 ) command and then tried to find some numbers I liked to extract or some line numbers I like to know.

The problem is that there is no empty line at the end of the text files.

R gave me this warning below;

In addition: Warning message:
incomplete final line found by readLines on 'output.txt'

I know this doesn't affect anything and just warning messages. Is there any way to prevent this warning message.

Thanks

Taka



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 30 23:29:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 05 Jul 2006 - 22:16:15 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.