How do you change the default directory in RStudio (or R)?

user3380666 picture user3380666 · Mar 16, 2014 · Viewed 83.8k times · Source

I consulted http://www.rstudio.com/ide/docs/using/workspaces and tried the setwd code and clicking on More --> Set as working directory options. However, the next time I closed and opened RStudio, it did NOT change my directory to the one I wanted.

How do I set the directory so I don't have change it each time I open RStudio?

Thanks.

Answer

jlhoward picture jlhoward · Mar 16, 2014

Not sure if this is what you're looking for, but under Tools | Global Options... (alt-TG) there is a way to set the default directory.