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") 2. How do I get a string input from the user? Would like to see an R function, say askget(): delay = askget("Enter delay in seconds") system(paste( "sleep ", delay)) TIA, Ernie Adorio Math Department University of the Philippines Diliman, Quezon City ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help