[R] Stderr

2008-04-10 Thread Patricia García
Hi everyone, I need to get an error message as an object in the std output console. I can get it as a file with the following instructions: # Save error mesage: error1 - file(error1.txt, open=wt) sink(error1, type=message) experiment - function(data) With this, the error messages

Re: [R] Stderr

2008-04-10 Thread Patricia García
Hi, sorry for the last sentence, i was trying to make a generic statement by writing function So the code has to be: # Save error mesage: error1 - file(error1.txt, open=wt) sink(error1, type=message) experiment - somefunction(data) (I mean no matter what function is...) error1 is

Re: [R] Stderr

2008-04-10 Thread Uwe Ligges
Patricia García wrote: Hi, sorry for the last sentence, i was trying to make a generic statement by writing function So the code has to be: # Save error mesage: error1 - file(error1.txt, open=wt) sink(error1, type=message) experiment - somefunction(data) (I mean no

Re: [R] Stderr

2008-04-10 Thread Uwe Ligges
Patricia García wrote: Hi everyone, I need to get an error message as an object in the std output console. I can get it as a file with the following instructions: # Save error mesage: error1 - file(error1.txt, open=wt) sink(error1, type=message) experiment -