See "help(warning)" in R.

 

To completely suppress warnings do: 

>options(warn=-1)


 

Also see help(suppressWarnings) in R which may be more appropriate if you know 
where the warnings originate from. 

 

> suppressWarnings(for(i in 1:3) {m <- matrix(1:7, 3,4) })
> for(i in 1:3) {m <- matrix(1:7, 3,4) }


 

Regards, 

Wayne

 


 
> Date: Tue, 17 Nov 2009 10:46:27 +0000
> From: atanas.kambu...@gmail.com
> To: rpy-list@lists.sourceforge.net
> Subject: [Rpy] suppress R warnings with RPy2
> 
> Hello *,
> 
> I find rpy2 is of great help. The only thing that bothers me is that it 
> prints all the R warnings. I am running a Zope server that also uses 
> rpy2 and all the server errors are hidden among R warnings. Is there 
> some global option or at least some trick to stop rpy2 printing warnings?
> 
> Thanks,
> Atanas
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
                                          
_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
 http://clk.atdmt.com/UKM/go/186394591/direct/01/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to