Displaying 1 result from an estimated 1 matches for "badcommand".
2006 Aug 07
1
Capturing stderr from system()
Hello,
I have a system command that occasionally fails and writes output to
standard error, which R will print to the screen when ignore.stderr =
FALSE.
For example:
> system("BadCommand")
sh: line 1: BadCommand: command not found
I would like to know if the above command fails, and can presumably do
this by parsing the stderr message that R prints to the screen. My
(hopefully simple) problem is that I can't figure out how to capture
this output.
I tried intern = TRUE, c...