Re: [R] need help in pausing a script

2011-10-16 Thread Patrick Connolly
On Sun, 16-Oct-2011 at 09:08AM -0700, M3Mph15 wrote: |> Hey, I'm new to R. I wrote a script for doing several statistic tests and |> plot. is there any way to add a kind of pause function which halts script |> execution until a key is pressed. Please help fast if you can ?browser |> |> -- |> V

Re: [R] need help in pausing a script

2011-10-16 Thread Joshua Wiley
In addition to Michael's suggestion, if what you want to pause is the creation of graphs, set: par(ask = TRUE) see ?par for details. It makes it so that user input is required between each graph plotting. Cheers, Josh On Sun, Oct 16, 2011 at 9:08 AM, M3Mph15 wrote: > Hey, I'm new to R. I wro

Re: [R] need help in pausing a script

2011-10-16 Thread R. Michael Weylandt
Perhaps something like this (stolen from the demo() code): readline("\nType \t to start : ") # If you don't want the auto-print "" and are running it interactively, a call to invisible() might help. Michael Weylandt On Sun, Oct 16, 2011 at 12:08 PM, M3Mph15 wrote: > Hey, I'm new to R. I wrote