Re: [R] Pausing script to allow user input from keyboard.

2010-08-06 Thread jim holtman
Don't cut/paste; 'source' in the script. readLines is trying to read from stdin which is where the commands are being read from. Using 'source' avoids that problem. You can also look at some examples I have seen using tk/tcl where you can bring up a window for user input. On Fri, Aug 6, 2010 at

[R] Pausing script to allow user input from keyboard.

2010-08-06 Thread Johnny Tkach
Hi all, I have written a simple R script to help me analyze a large data set. I would like to have the script pause to allow the user to input a character string that is subsequently used as a filename when saving tables. I have tried to use the "readline" command - this seems to work fi