Re: [R] making R print on screen

2009-09-24 Thread ld7631
Thanks a lot, everyone!

On Thu, Sep 24, 2009 at 11:41 AM, Mario Valle  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.liakhovit...@ninah.com

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] making R print on screen

2009-09-24 Thread Mario Valle
?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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] making R print on screen

2009-09-24 Thread Marc Schwartz

On Sep 24, 2009, at 10:26 AM, 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)
}



Presumably you are on Windows?  If so, see:

http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-output-to-the-console-seems-to-be-delayed


HTH,

Marc Schwartz

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] making R print on screen

2009-09-24 Thread Romain Francois

On 09/24/2009 05:26 PM, 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)
}


Maybe ?flush.console

--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
|- http://tr.im/yw8E : New R package : sos
`- http://tr.im/y8y0 : search the graph gallery from R

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] making R print on screen

2009-09-24 Thread ld7631
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)
}



-- 
Dimitri Liakhovitski
Ninah.com
dimitri.liakhovit...@ninah.com

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.