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
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)
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)
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)
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)
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
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,
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