Skip to content

How to suppress message in system()

2 messages · Christofer Bogaso, Simon Urbanek

#
Hi,

There is a function called system() with which one can run system code
within R. But I am wondering if there is any way to suppress any message
when invoking system().

For example let run 'df_dummy' through system() [yes, this is just dummy
command which would throw error while invoking]
sh: df_dummy: command not found

I want to suppress the message 'sh: df_dummy: command not found'

I am running R in iOS Mavericks

Any help would be highly appreciated. Thanks,
#
See 
?system
in particular ignore.stdout and ignore.stderr parameters. Those are not messages and thus have nothing to do with suppressMessages().

Cheers,
Simon