NewbieDave
NewbieDave

Reputation: 1259

Rstudio calls source() when saving script

I'm using Rstudio on my Mac OS 10.9.2. It was fine until I installed the new version 98.778. Whenever I try to save my script. It automatically calls source("myscript.R") for me, which is very annoying. I then re-installed the previous version, 98.501. The problem is still there. Anyone knows how to stop it?

Appreciate it.

Upvotes: 33

Views: 7176

Answers (2)

CHP
CHP

Reputation: 17189

Are you sure "Source on save" box is unchecked?

enter image description here

Upvotes: 41

mathematical.coffee
mathematical.coffee

Reputation: 56905

You probably have the "source on save" checkbox ticked (next to the save icon on the left hand side in the code editor, not for saving the Rproject) which does this. (Untick it to turn it off)

http://www.rstudio.com/ide/docs/using/source

Upvotes: 10

Related Questions