[R] Fast way to determine number of lines in a file

Romain Francois romain.francois at dbmail.com
Mon Feb 8 16:20:07 CET 2010


On 02/08/2010 04:16 PM, Hadley Wickham wrote:
>
>> parser::nlines does it in C.
>
> Looks promising, but I need something that uses connections because
> I'm working with big bzipped files.
>
> Hadley

Ah... the lack of c-level api for connections again ;-)

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/MPYc : RProtoBuf: protocol buffers for R
|- http://tr.im/KfKn : Rcpp 0.7.2
`- http://tr.im/JOlc : External pointers with Rcpp



More information about the R-help mailing list