You can use R's "sink()"

It is used in rpy2 to map R's "print" to Python objects' "__str__()".
Check  lines 84 to 102 at:
http://rpy.svn.sourceforge.net/viewvc/rpy/branches/rpy_nextgen/rpy/robjects/__init__.py?view=markup&pathrev=562

2008/6/24 Renato Alves <[EMAIL PROTECTED]>:
> Hi,
>
> I'm running a script that does a lot of statistical tests on different
> sets of data and causes a lot of "unwanted" output like:
>
> Warning message:
> In cor.test.default(c(130L, 414L, 325L, 287L, 232L, 336L, 640L,  :
>  Cannot compute exact p-values with ties
> Warning message:
> In cor.test.default(c(134L, 246L, 770L, 143L, 637L, 340L, 601L,  :
>  Cannot compute exact p-values with ties
>
> I would like to prevent this by either blocking R output to stdout or
> redirecting it to a file (or /dev/null). Is it possible?
>
> Thanks,
> Renato
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to