Rstudio is duplicating commands in the command line

Dan_Alexander picture Dan_Alexander · Feb 28, 2014 · Viewed 15.5k times · Source

Having a weird problem in R that seems to have come out of nowhere... output in the RStudio terminal is repeated without me asking for it... i.e.,

> 3+4
> 3+4
[1] 7
[1] 7

Anyone else have this issue and have any ideas how to resolve it? I'm also wondering whether it's actually performing the commands twice (and slowing things down considerably!).

Thanks in advance.

Answer

atiretoo picture atiretoo · Jul 17, 2014

I had the same problem in Rstudio 0.98.501. I restarted the R session and it disappeared. It is running the same command twice, which can not only slow things down but give erroneous results if you are transforming an object into the same name.