[R] Setting the working directory on Windows
Duncan Murdoch
murdoch at stats.uwo.ca
Thu Jan 5 20:48:09 CET 2006
On 1/5/2006 2:11 PM, Berton Gunter wrote:
> In a similar vein, a GUI version is:
>
> setwd(dirname(choose.files()))
>
> This gives you a standard Windows file browser -- you just click on any file
> in the directory you want to set. Obviously, dirname(choose.files()) is an
> easy interactive way to get directories as strings if you need them. See
> also ?basename .
>
Brian Ripley added a function choose.dir() to R-devel, which will give
you access to the code in the File|Change dir... menu item in R code.
Won't be out for a few more months, though.
Duncan Murdoch
More information about the R-help
mailing list