[ESS] Following setwd() to a new place

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Mon Jan 3 10:35:50 CET 2005

hi Henrik,

 > When I start ESS (M-x R) it asks me which folder to start in. But then I 
 > do a setwd() to somewhere else because I start on something else, and 
 > when I try filename completion ESS still thinks I am in the folder I 
 > started in,

What form of file completion are you referring to here? C-x C-f?

e.g. if i am currently in an *R* buffer, and I do C-x C-f, find-file
thinks that I am in my home directory ~ say.  If I then do 

and try another C-x C-f, I am still in the home directory -- whereas I
think you would like it to be /tmp.

 > is there a solution to this little annoyance, except restarting
 > ESS?

Automatic directory syncing might be tricky, but it may not be too
hard to get something working manually.  *shell* buffers can be kept
in sync using M-x shell-resync-dirs.


More information about the ESS-help mailing list