Skip to content
Prev 309695 / 398506 Next

Strange behaviour of setwd/getwd

Maybe my question was not clear enough:
default.wd is the working dir defined in the RStudio options.
In my script I want to change it temporarily to another directory by  
setwd(choose.dir()) and set it back to the default.wd before calling  
another script. But after choosing the new directory tmp.wd shows the same  
path in the workspace as default.wd. Calling getwd() shows the correct  
path.
Hope its clearer now.


Am 02.11.2012, 19:14 Uhr, schrieb Duncan Murdoch  
<murdoch.duncan at gmail.com>: