[R] socketConnection and readLines

Thomas Lumley tlumley at u.washington.edu
Thu May 27 17:06:11 CEST 2004


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 at hotmail.com
>
> _________________________________________________________________

>
> ______________________________________________
> R-help at 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 at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list