[R] How to set working directory to a fixed map?

Duncan Murdoch murdoch at stats.uwo.ca
Tue Feb 5 14:41:54 CET 2008


On 2/5/2008 7:26 AM, Falco tinnunculus wrote:
> Dear all,
> 
> How do I set the working directory to a fixed map? It's time consuming to
> change working directory every time I run R.

You can put a setwd() command in your Rprofile.  On Windows, you could 
set the startup directory in the shortcut.  On any system, you could 
write a little script that changed directory, then started R.

Duncan Murdoch



More information about the R-help mailing list