The “arrow” prompt (“>”) is the standard prompt that R uses to signify that it is ready for input. The plus (“+”) is used when R expects the user to finish what they started on the previous line. Thus, the plus prompt implies that you did not finish your code on the previous line. Most of the time this means that you did not close a parentheses or a set of quotes. For example,
> 2*(3+5)+4*(1+2
+)
[1] 28
It is possible to complete the code, as demonstrated above. However, completion is not always simple or may lead to errors if the missing portion is earlier in the code.
Thus, the best thing to do when you see the plus prompt is to click in the R Console, press the “ESC”ape key, return to your script, complete the incomplete command, and run the command again.