2

After entering a complex code(where something was incorrect), instead of > sign R displays +. If I knew what is missing (oftentimes due to missing out (,),') it would be easy to fix, but I am not sure. Therefore I am "locked" with this + state and cannot escape it. Is there a way to kill it and revert back to the default prompt?

Oposum
  • 1,155
  • 3
  • 22
  • 38
  • 1
    Just press `CTRL+C` on the keyboard, if you are running plain R. Some IDE (like RStudio) have a `Stop` button you can press to abort the command given. – nicola Apr 15 '16 at 17:07
  • @nicola thanks, that's it. if you put this as an answer, I will check it out as correct. – Oposum Apr 15 '16 at 17:16

2 Answers2

3

Often Esc, the escape key works.

lmo
  • 37,904
  • 9
  • 56
  • 69
3

It depends on where R is running. Try CTRL+C on the keyboard, if you are running plain R. Some IDE (like RStudio) have a Stop button you can press to abort the command given.

nicola
  • 24,005
  • 3
  • 35
  • 56