Skip to content
Prev 67412 / 398506 Next

How to suppress the printing of warnings (Windows)?

On Mon, 11 Apr 2005, Jacho-Chavez,DT (pgr) wrote:

            
options(warn=-1)

However, warnings and errors are sent to stderr not stdout except on 
obselete versions (95/98/ME) of Windows, and so not redirected by that 
sink() call. For me (Windows XP)
Warning message:
test

as expected.  So is this an obsolete version of Windows or a very old 
version of R?