[back to the list]

Good to hear that updating to rpy2-2.0.3 solved the crashes you 
observed. Updating the 2.0.x should be tried whenever a newer version is 
available as there should not be disappearing features in the API 
(possible changes will mostly happen with 2.1.x).

As you noted, the GTK R console in the demos/ directory outputs a little 
too much (when doing 'x <- rnorm(100)', the content of 'x' will be 
returned to the console). That's not the way it should be, and that's 
one of the reasons why this is only in the demos/; a module of GTK 
widgets (a toolkit for easy DIY R GUI) was initially planned but could 
not make it for 2.0.0.

This console is a real quick hack, and I (or someone) should look into 
the R source to see how things are done in order to fix this.



L.





Carson J.Q. Farmer wrote:
> 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
> 


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