From murdoch at stats.uwo.ca  Thu Oct 20 20:24:45 2005
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Thu, 20 Oct 2005 14:24:45 -0400
Subject: [Rd] [R-gui] R GUI considerations (was: R, Wine,
	and multi-threadedness)
In-Reply-To: <200510201621.MAA07599@www20.ureach.com>
References: <200510201621.MAA07599@www20.ureach.com>
Message-ID: <4357E0ED.9070305@stats.uwo.ca>

On 10/20/2005 12:21 PM, Walter Johnston wrote:

> And the question:
> 
> Is there a "simple" way (e.g. some socket based mechanism) to
> feed commands into R and retrieve the results of those commands?
>  This would require that I program the sequence of commands I
> want to use (or a means to generate them) and then be able parse
> the resulting structure - I understand. But it would also allow
> separation of the computation, the "statistical reasoning", and
> the UI into (potentially) separate units which would not even
> need to be on the same machine to inter-operate.  If there is a
> reasonable way to do this, please tell me.

Take a look at the Writing R Extensions manual.  There are several 
levels at which you can interact with R.  The simplest is to act as a 
console, feeding text in and getting text out.  If you actually want to 
work with things as binary objects you'll need lower level access.  It's 
not that bad if you just want to write a function that gets passed R 
objects.  I don't think it be called "simple" if you want to do away 
with the console completely, and start working directly with the evaluator.

Duncan Murdoch



[Rd] [R-gui] R GUI considerations (was: R, Wine, and multi-threadedness)
Duncan Murdoch