---------- Forwarded message ----------
From: D0c <kanglin at gmail.com>
Date: Jun 11, 2005 1:04 PM
Subject: Re: [Rd] Using Rserve
To: Simon Urbanek <simon.urbanek at r-project.org>
Hey Simon, I wish i had a choice of platform,... but i don't. Yes i'd
like to know when Rserve is ready, send me some code.
On 6/11/05, Simon Urbanek <simon.urbanek at r-project.org>
wrote:> Hi D0c,
>
> On Jun 11, 2005, at 12:57 PM, D0c wrote:
>
> > Hey is there a more consistent way of connecting to Rserve. I have
> > code that opens a connection to Rserve by executing explicitly
> > using Java runtime ( "C:\Program Files\R\r20XXX\Rserve.exe"
).
>
> In principle this is ok, but you need to make sure you read the
> output stream of that process. (BTW: this is also probably the
> easiest way to find out when Rserve is ready and preventing timeout
> error). If you need help with that, let me know and I dig out a class
> I have around somewhere which does percisely that.
>
> > However when i run the app and attempt to connect, it does not
> > connect imediately.I have to close the app and open it again for a
> > few times before i get a connection.
> > Am i doing something wrong?
>
> The other thing you're doing wrong is that you're using Windows ;)
j/k
>
> Cheers,
> Simon
>
>