Skip to content
Prev 79048 / 398502 Next

Setting working directory interactively within a function

On 10/14/2005 1:08 PM, Berton Gunter wrote:
That won't work in Windows, where the dialogs don't consider directories 
to be files so won't return them.

As far as I know no platform lets you setwd() to a file (even though 
this might make sense:  setwd("foo") could mean change to foo if it's a 
directory, to the directory it's in if it's a file).

Duncan Murdoch