[R-SIG-Mac] How to suppress message in system()

Simon Urbanek @imon@urb@nek @ending from R-project@org
Thu Nov 29 15:55:53 CET 2018


See 
?system
in particular ignore.stdout and ignore.stderr parameters. Those are not messages and thus have nothing to do with suppressMessages().

Cheers,
Simon


> On Nov 29, 2018, at 9:50 AM, Christofer Bogaso <bogaso.christofer using gmail.com> wrote:
> 
> 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]
> 
>> suppressMessages(system('df_dummy'))
> 
> 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,
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list