I am using R to generate a series of plots within a loop, with the user hitting the enter key to indicate they have seen the plot and it is time to move on. These are interacti
Use this:
readLines("stdin", n = 1)
That will get the real stdin instead of what stdin() uses.
stdin
stdin()
I'd invoke it with:
Rscript myfile.r