When using the readLines()
function in R to read stdin from keyboard, Ctrl-D
does not work as in the bash. Actually, I have tried every possible combination of Ctrl
and another letter, but none of them worked. How to tell R to stop readLines()
?
Asked
Active
Viewed 464 times
2

zeno tsang
- 735
- 1
- 6
- 16
1 Answers
1
If you're on Windows, Ctrl+Z.

Hong Ooi
- 56,353
- 13
- 134
- 187
-
Unfortunately, it does not work on my windows. – zeno tsang Jul 23 '13 at 15:50