Re: [R] socketConnection and readLines

About this list Date view Thread view Subject view Author view Attachment view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Fri 28 May 2004 - 01:06:11 EST


Message-id: <Pine.A41.4.58.0405270805340.149074@homer04.u.washington.edu>

On Thu, 27 May 2004, Laura Holt wrote:

> Dear R People:
>
>
> I have tried the following code:
>
> >con <- socketConnection(port=13, host="tick.usno.navy.mil")
> >readLines(con)
>
>
> The socketConnection function works, but the readLines command just sits.

You want readLines(con, n=1)

        -thomas

> This has happened on R for Windows 1.8.1 and 1.9.0 and R on LINUX 1.8.1
>
> Any suggestions, please
>
>
> Thanks,
> Laura
> mailto: lauraholt_983@hotmail.com
>
> _________________________________________________________________
> Express yourself with the new version of MSN Messenger! Download today -
> it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

Thomas Lumley Assoc. Professor, Biostatistics
tlumley@u.washington.edu University of Washington, Seattle

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST