Hi list,

I have written a simple python application, and I would like to have an 
R console embedded within it. For simplicity sake, this is essentially a 
text box which receives user input (R commands), and an text browser 
(read only) for the R output. Using Rpy this was relatively simple, 
though most commands had to be wrapped in the R command 'capture.output' 
to get the desired output.

Now using Rpy2, I am having trouble reproducing this functionality. I 
have used rinterface.setWriteConsole() to catch the console output, but 
this does not appear to be all console output, as I get (for example) 
messages from package loading, but not results from 'summary' commands. 
In addition, if I don't wrap the commands in the 'capture.output' R 
command (which essentially turns all output to string), then my 
application segfaults.

My question therefore is: Has anyone else attempted to do this, and if 
so, how did they successfully reproduce this?

Cheers,

Carson

Ubuntu Linux - 8.10
Python - 2.5.2
Rpy2 - 2.0.0
R - 2.7.1

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
John Hume Building,
National University of Ireland, Maynooth,
Co. Kildare,
Ireland.
Phone: +353 (0) 1 708 6726
Fax:   +353 (0) 1 708 6456
Email: carson.far...@nuim.ie


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to