Re: [R] Progress Monitor in R

From: Clint Bowman <clint_at_ecy.wa.gov>
Date: Tue 24 Oct 2006 - 21:29:40 GMT

Or change the \n to \r so that the lines overwrite one another rather than producing a list that scrolls off the top.

Clint Bowman			INTERNET:	clint@ecy.wa.gov
Air Dispersion Modeler		INTERNET:	clint@math.utah.edu
Air Quality Program		VOICE:		(360) 407-6815
Department of Ecology		FAX:		(360) 407-7534

	USPS:  		PO Box 47600, Olympia, WA 98504-7600
	Parcels:	300 Desmond Drive, Lacey, WA 98503-1274

On Tue, 24 Oct 2006, Weiwei Shi wrote:

> the way i do is like this
>
> for (i in 1:1000){
>
> if (i %% 100){ # you can change this number
> cat("process monitor: i =", i, "\n");
> }
>
> }
>
> hth,
>
> w.
>
> On 10/24/06, Xiaofan Cao <cao@stat.colostate.edu> wrote:
> > Hi there,
> >
> > I'm writing a program in R that has a few nested loops. I'd like to
> > monitor the progress when the program is running and be able to estimate
> > the remaining time.

> >
> > I'd highly appreciate it if anyone can shed a light on this issue. Thanks
> > for your time!
> >
> > Best Regards,
> > Martha Cao
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch 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.
> >
>
>
> --
> Weiwei Shi, Ph.D
> Research Scientist
> GeneGO, Inc.
>
> "Did you always know?"
> "No, I did not. But I believed..."
> ---Matrix III
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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-help@stat.math.ethz.ch 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. Received on Wed Oct 25 07:41:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 24 Oct 2006 - 22:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.