Skip to content
Prev 200214 / 398503 Next

Change working directory

In R for Macintosh, there is a Preferences setting that will do this.
You can also drag and drop a file onto the R icon and I believe it 
will change the working directory to the directory that contains the 
file.

On unix-like systems, using the command line, it's whatever directory 
you start R in.

I don't use R on Windows, so I don't know there, but I imagine there 
may be a preferences setting, or perhaps the drag and drop method 
works. Or maybe create a shortcut in the directory you want to be the 
working directory?

-Don
At 6:34 AM -0800 11/13/09, anna_l wrote: