[R] interactive menu in scripts

WCD vydramail at quick.cz
Fri Jan 25 21:09:11 CET 2008

Hello, I would like to make my R script more interactive. Well, I want the
script to work like this:

I run the script from R Console and it offers me some options (press 1 for
something, or press 2 for something else). After pressing 1 or 2, do
corresponding procedure.

I am not able to find out how to do this. I guess the functions menu() or
switch() are the keys, but I didn't manage to use them properly. Can you
help me? Are there some more practical examples on the web?
Tahnks, Filip Kral.
View this message in context: http://www.nabble.com/interactive-menu-in-scripts-tp15095049p15095049.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list