Returning from the '+' to '>' prompt in command line of R Studio

Darth Coder picture Darth Coder · Feb 27, 2014 · Viewed 35k times · Source

I know the prompt changes from < to + when the command line in R expects you to complete the current command. Is there a way (say, shortcut key) to immediately terminate the command being written and revert from the '+' mode to the regular console '>'?

Answer

TMODI picture TMODI · Nov 19, 2015

Press 'Esc' key will bring you back to the prompt (<). You don't need to type word 'Esc'.