send R diagnostic messages to stdout instead stderr
问题 Looking for an options which let me to redirect R diagnostic messages (produces by message() ) to stdout , not stderr as it is by default. message manual states: The default handler sends the message to the stderr() connection. So the question is how can I change this default behavior? still leaving redirection of warning() and stop() intact. Already tried sink type='message' but it redirects all (messages, warnings, errors). If anyone is willing to test, this is sample script exec_test.R :