[R] interactive prompts
Ko-Kang Kevin Wang
kwan022 at stat.auckland.ac.nz
Mon Oct 20 13:50:20 CEST 2003
On Tue, 21 Oct 2003, Ko-Kang Kevin Wang wrote:
> On Tue, 21 Oct 2003, Ernie Adorio wrote:
>
> > Am using R on a Linux box and am currently writing an interactive R script.
> >
> > 1. How do I ask a user to press any key to continue ? I used a system call to
> > read but this only works if the Enter key is pressed:
> > print("Press any key to continue")
> > system("read")
>
> par(ask = TRUE)
> will do what you want.
Sorry, that will only work if you are plotting graphs. I didn't quite
read your question properly *_*.
--
Cheers,
Kevin
---------------------------------------------------------------
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022
Ph: 373-7599
x88475 (City)
x88480 (Tamaki)
More information about the R-help
mailing list