Re: [R] .Rprofile replacement function setwd() causing errors

2009-10-30 Thread Duncan Murdoch
On 10/30/2009 9:30 AM, Michael Friendly wrote: In my .Rprofile I have the following functions which display the current directory in the main R window title bar, and modify base::setwd() to keep this up to date. I like this because I can always tell where I am in the file system. cd <- funct

[R] .Rprofile replacement function setwd() causing errors

2009-10-30 Thread Michael Friendly
In my .Rprofile I have the following functions which display the current directory in the main R window title bar, and modify base::setwd() to keep this up to date. I like this because I can always tell where I am in the file system. cd <- function(dir) { base::setwd(dir) utils::setWindowTi