Skip to content
Back to formatted view

Raw Message

Message-ID: <8b356f880905161315w47211083m5da7f4bdf8f9cbea@mail.gmail.com>
Date: 2009-05-16T20:15:27Z
From: Stavros Macrakis
Subject: newbie: closing unused connection + readline
In-Reply-To: <fd14267e0905160611m372f6830wc368b82fa54b0a81@mail.gmail.com>

On Sat, May 16, 2009 at 9:11 AM, Aval Sarri <aval.sarri at gmail.com> wrote:
> ...I tried something line this also:
>
> mydataframe <- read.table (socket, sep=",");
>
> but does not work says no input lines.
>
> this also.
>
> mydataframe <- read.table (readLine(socket), sep=",");

Sorry, I didn't see this before my last email.  This seems to be the
real problem....

I don't understand why read.table would have a problem reading
directly from a socket instead of a textConnection.  Is this a bug?
Some subtlety in the semantics of socketConnection as opposed to
textConnection?  Incorrect parameters when opening the
socketConnection?

            -s