[R] The problem of readLines

Henrique Dallazuanna wwwhsd at gmail.com
Thu Oct 1 16:06:35 CEST 2009


>From the help page for readLines:

" If the final line is incomplete (no final EOL marker) the
     behaviour depends on whether the connection is blocking or not.
     For a non-blocking text-mode connection the incomplete line is
     pushed back, silently.  For all other connections the line will be
     accepted, with a warning. "

You can disable the warning with;

readLines('your_file', warn = FALSE)

On Thu, Oct 1, 2009 at 9:39 AM, Tammy Ma <metal_licaling at live.com> wrote:
>
> Dear R-users,
>
>
> I use "readLines" to read data, but when processing the large data set, there are few files which can not be readed in:
>
> 48: In readLines(name_c[i]) ... :
>  incomplete final line found on 'C:/Documents and Settings/lma/My Documents/habitdata/244052900243997/calllog/calllog_log-20050505T121611.txt'
> ...
>
>
>
> Whats the problem about this?
>
> Regards,
> Tammy
>
>
>
> _________________________________________________________________
> More than messages–check out the rest of the Windows Live™.
> http://www.microsoft.com/windows/windowslive/
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O




More information about the R-help mailing list