Displaying 1 result from an estimated 1 matches for "txt0".
Did you mean:
txt
2015 Nov 23
1
capturing warnings using capture.output
>From the Details section of ?capture.output:
Messages sent to stderr() (including those from message, warning and stop)
are captured by type = "message". Note that this can be "unsafe" and should
only be used with care.
Capturing messages works as expected:
capture.output(message("!!!"), type = "message")
## [1] "!!!"
Capturing warnings