Skip to content

How to stop a loop for?

3 messages · Juan Andres Hernandez, R. Michael Weylandt, Greg Snow

#
A somewhat common idiom is to use readline() with "Please press
<Return> to continue:" as the prompt and not to store the value
anywhere.

Michael

On Wed, Feb 8, 2012 at 2:45 PM, Juan Andres Hernandez
<jhernandezcabrera at gmail.com> wrote:
1 day later
#
If you want to pause for the person to look at a plot before going on
to the next plot then just do:
This will actually allow your loop to continue with calculations while
the user looks at the plot but will pause before drawing the next plot
(hitting enter in the command window or clicking on the plot window
will allow the code to continue).

If you want to pause for something other than a plot then use readline
like Michael suggests.

On Wed, Feb 8, 2012 at 12:45 PM, Juan Andres Hernandez
<jhernandezcabrera at gmail.com> wrote: