From kanglin at gmail.com  Mon Jun 13 16:16:43 2005
From: kanglin at gmail.com (D0c)
Date: Mon, 13 Jun 2005 09:16:43 -0500
Subject: [Rd] Fwd:  Using Rserve
In-Reply-To: <2667b2130506111104482232ea@mail.gmail.com>
References: <2667b21305061109571335ef88@mail.gmail.com>
	<B04A8BD9-1D92-4AFB-940D-8329A757A096@r-project.org>
	<2667b2130506111104482232ea@mail.gmail.com>
Message-ID: <2667b213050613071667e1985d@mail.gmail.com>

---------- 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
>
>



[Rd] Fwd: Using Rserve
D0c