[R] Strange behaviour of setwd/getwd
Markus Holotta
q140mh at gmail.com
Fri Nov 2 17:57:50 CET 2012
I've found the following strange behaviour R (RStudio) which has been
confirmed by another user in RGui.
Inside a script I want to set two variables:
default.wd = getwd()
tmp.wd = setwd(choose.dir())
After choosing tmp.wd the value of default.wd is shown in Workspace, but
getwd() is giving back the correct string of tmp.wd.
Is there a workaround for the problem?
I'm working on RStudio 0.96.228 and R 2.15.2.
Regards
Markus
More information about the R-help
mailing list