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) ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help