Hello,

I am trying write a script that includes a prompt for user input using
readlines(). I am running into the problem that when I run readlines() as a
single line the prompt works perfectly, but when I try to run a block of
code which includes the readline function, the script doesn't wait for the
user input. I have seen this question posted before when I did a search, but
I didn't find an suitable answer. Is there a means of ensuring that the
script does not proceed until a value has been entered to readline(). Can I
put readline in a function that will wait for input?

Are there other options for getting user input that allow require that the
script wait for user input?

Thanks for your help,

Nate

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to