Hi rpy'ers,

In the older versions of rpy(2?), I could redirect stdout to a file to 
capture all console output. This was adequate, though I got lots of extra 
info over and above what R would print for the same object. (For example, 
when printing the result of an lm() model fit, I'd get the entire dataset 
and call parameters, as well as the standard R output tables.)

With rpy2-2.1 (on windoze anyway), I cannot even redirect the output via 
stdout. I tried the examples in the doc for consolePrint() and those 
failed as well (note the examples on 
http://rpy.sourceforge.net/rpy2/doc-2.1/html/callbacks.html#console-i-o
do not have proper camel case in them). So, the question is ... if I have 
something like the following model:

fit = rpy2.robjects.r.lm(fmla,data)

how can I capture (in a file or a string) the output that /R/ would give 
when printing the variable fit? (I know there's been extensive discussion 
of this general topic on the list, and that R is not friendly for doing 
what I'm requesting. I was wondering, though, if there are substantial 
changes in rpy2-2.1 as regards this topic.)

Thanks!

Gary


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to