Re: [R] Strange behaviour of setwd/getwd

2012-11-04 Thread Markus Holotta
opology > Texas A&M University > College Station, TX 77843-4352 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Berend Hasselman > > Sent: Friday, November 02, 2012 3:36 PM

Re: [R] Strange behaviour of setwd/getwd

2012-11-02 Thread Markus Holotta
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 : On 02/11/2012 12:57 PM, Markus Holotta wrote: I've found the following strange behaviour R (RStudio) which has

[R] Strange behaviour of setwd/getwd

2012-11-02 Thread Markus Holotta
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