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

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Thu Nov 29 15:50:50 CET 2018


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]]

More information about the R-SIG-Mac mailing list