This question already has an answer here:
I have been having an odd issue with RStudio.
When I use any command to run the script (so either Ctrl + R, Ctrl + Enter, or the actual Run command on RStudio) that command is run twice. I have been unable to find anything about this on the internet.
Has any of you ever come across this issue? Thanks
I restart RStudio. Change to another workspace and come back. The issue is fixed. So you can try to do that. Maybe can help you.
I am using the 0.98.507 version.
Restaring the Rstudio solved the problem for me.