2

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()?

zeno tsang
  • 735
  • 1
  • 6
  • 16

1 Answers1

1

If you're on Windows, Ctrl+Z.

Hong Ooi
  • 56,353
  • 13
  • 134
  • 187