Re: [R] Incomplete ouput with sink and split=TRUE

2008-02-06 Thread jiho
On 2008-February-06 , at 14:45 , Duncan Murdoch wrote: > On 2/5/2008 11:12 AM, jiho wrote: >> Dear List, >> I am trying to get R's terminal output to a file and to the >> terminal at the same time, so that I can walk through some tests >> and keep a log concurrently. The function 'sink' with

Re: [R] Incomplete ouput with sink and split=TRUE

2008-02-06 Thread Duncan Murdoch
On 2/5/2008 11:12 AM, jiho wrote: > Dear List, > > I am trying to get R's terminal output to a file and to the terminal > at the same time, so that I can walk through some tests and keep a log > concurrently. The function 'sink' with the option split=TRUE seems to > do just that. It works fi

Re: [R] Incomplete ouput with sink and split=TRUE

2008-02-06 Thread jiho
On 2008-February-06 , at 11:25 , Alex Brown wrote: > you could use the unix function 'script' before invoking the R > interpreter. Thanks for the suggestion. It would work for some cases and I did not know about this utility. But most of the time I just put a list of commands in a .R file

Re: [R] Incomplete ouput with sink and split=TRUE

2008-02-06 Thread Alex Brown
you could use the unix function 'script' before invoking the R interpreter. example session: $ script Script started, file is typescript [x86_64|[EMAIL PROTECTED]:~] $ R --quiet --vanilla > 1:10 [1] 1 2 3 4 5 6 7 8 9 10 > q() [x86_64|[EMAIL PROTECTED]:~] $ exit exit Script done, file

[R] Incomplete ouput with sink and split=TRUE

2008-02-05 Thread jiho
Dear List, I am trying to get R's terminal output to a file and to the terminal at the same time, so that I can walk through some tests and keep a log concurrently. The function 'sink' with the option split=TRUE seems to do just that. It works fine for most output but for objects of class