How can I redirect R warning messages to STDOUT?

后端 未结 2 1996
悲哀的现实
悲哀的现实 2021-01-02 07:24

I\'m using a grid engine to run R scripts. The STDERR is taken seriously under this setup, so I would like to keep it clean and have only real/serious/fatal errors printed t

2条回答
  •  醉话见心
    2021-01-02 08:00

    @Dirk already provided the answer, but I would just add that you can use stdout() to get a connection to the STDOUT. You can use this in any output function to direct output there.

提交回复
热议问题