[R] making R print on screen

ld7631 ld7631 at gmail.com
Thu Sep 24 17:44:08 CEST 2009


Thanks a lot, everyone!

On Thu, Sep 24, 2009 at 11:41 AM, Mario Valle <mvalle at cscs.ch> wrote:
> ?flush.console
>
> Ciao!
>        mario
> ld7631 wrote:
>> Hello!
>>
>> I am running a "for" loop. In the loop I am producing some
>> intermediary results and asking R to print it (of the type below).
>> However, I noticed - when the task is complicated and takes a lot of
>> time, R does not print those intermediary results immediately, but
>> prints them in batches - or does not print at all until we are done
>> with the whole calculation.
>> Is there any way to force R to really print everything it's supposed
>> to be printing as soon as one iteration is over?
>>
>> Thanks a lot!
>>
>> for(i in ....) {
>> x<-...
>> print(x)
>> }
>>
>>
>>
>
> --
> Ing. Mario Valle
> Data Analysis and Visualization Group            | http://www.cscs.ch/~mvalle
> Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
> v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82
>



-- 
Dimitri Liakhovitski
Ninah.com
Dimitri.Liakhovitski at ninah.com




More information about the R-help mailing list