Re: [R] Setting the working directory on Windows

From: Duncan Murdoch <>
Date: Fri 06 Jan 2006 - 06:48:09 EST

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 mailing list PLEASE do read the posting guide! Received on Fri Jan 06 06:55:02 2006

This archive was generated by hypermail 2.1.8 : Fri 06 Jan 2006 - 14:03:15 EST