[R] read.table and newline

About this list Date view Thread view Subject view Author view

From: Andrea Peters (Peters.Andrea@imbe.imed.uni-erlangen.de)
Date: Wed 13 Jun 2001 - 23:47:53 EST


Message-Id: <Pine.LNX.4.21.0106131544240.5863-100000@imbe78.imbe.med.uni-erlangen.de>

Hi,
yesterday I installed the current R-devel and now I get
the following warning message for program codes which made no
problems under version R-1.2.3:

Example:
R> read.table("test.dat")
Warning message:
incomplete final line in: readLines(con, n, ok)
 
where `test.dat' looks like

peters@artemis:~ > cat test.dat
1 2 3peters@artemis:~ >

i.e. without a newline at the end.

The warning can be suppressed if the last line in "test.dat" ends with
"\n". Is there a reason why "test.dat" should end with "\n" or is this a
bug in R-devel?

Andrea

> version
         _
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status Under development (unstable)
major 1
minor 3.0
year 2001
month 06
day 11
language R

-------------------------------------------------------------------------

        Dipl.-Stat. Andrea Peters
        Institut für Medizininformatik, Biometrie und Epidemiologie
        Waldstrasse 6, D-91054 Erlangen, Deutschland
        Tel: ++49-9131-85-22722
        Fax: ++49-9131-85-25740

-------------------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:44 EST