If you run an incomplete command
If your command isn’t complete but you still run it, the R console will show a +
prompt, indicating that it is waiting for the rest of the command.
A common reason for incomplete commands:
- you haven’t closed a parenthesis or a quotation, i.e. you don’t have the same number of left-parentheses as right-parentheses, or the same number of opening and closing quotation marks
To cancel a command, click inside the console window and press Esc
and you will return to the >
prompt.