[R] How do I temporarily stop an execution?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jun 19 12:22:02 CEST 2001
On Tue, 19 Jun 2001, Jonathan Baron wrote:
> If you _know_ in advance that you want to stop at some
> point, readline(), is useful. It is how the demo program
> works. The function stop() is good too, for debugging,
> but you can't restart. Jon
I think I did not understand the aim here, and after I private reply can
1) par(ask=T) stops before each graph.
2) package sm has a simple pause() function using readline that can be
pause <- function ()
cat("Pause. Press <Enter> to continue...")
3) Inserting a call to browser() is even better for debugging.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help