search for: askget

Displaying 2 results from an estimated 2 matches for "askget".

2003 Oct 21
4
interactive prompts
...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
2004 Mar 19
3
Reading Data
Hi, Quick question on reading data. I am running simulations but want to allow the user the option to define the number of simulations. How can I have R read-in user data entered from the keyboard? Is there a difference for reading in numeric and character data? For example, I am trying to write the following in R: Enter Number of Iterations? <<<the user then enters a number say Y