[R] interactive prompts

2003-10-20 Thread Ernie Adorio
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

Re: [R] interactive prompts

2003-10-20 Thread Jonathan Baron
On 10/21/03 14:47, 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)

Re: [R] interactive prompts

2003-10-20 Thread Ko-Kang Kevin Wang
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)

Re: [R] interactive prompts

2003-10-20 Thread Prof Brian Ripley
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)

Re: [R] interactive prompts

2003-10-20 Thread Roger Bivand
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)

Re: [R] interactive prompts

2003-10-20 Thread Ko-Kang Kevin Wang
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

Re: [R] interactive prompts

2003-10-20 Thread Barry Rowlingson
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) If you want to do something prettier,

Re: [R] interactive prompts - tcltk examples

2003-10-20 Thread Barry Rowlingson
I've found a nice page of tcltk examples: http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ so no excuse now for giving R users nice UIs. Or making horrendously bad ones, of course. I've just been a collaborator on a grant application knocked back partly because the funders thought