[ESS] Permanently set working directoty

Gorjanc Gregor Gregor.Gorjanc at bfro.uni-lj.si
Thu Aug 24 09:10:00 CEST 2006

Great, thank you very much for this!

Lep pozdrav / With regards,
    Gregor Gorjanc

-----Original Message-----
From: Stephen Eglen [mailto:S.J.Eglen at damtp.cam.ac.uk]
Sent: Wed 2006-08-23 22:07
To: Stephen Eglen
Cc: Gorjanc Gregor; Martin Maechler; ess-help at stat.math.ethz.ch
Subject: Re: [ESS] Permanently set working directoty
 > hi Gregor,
 > I think you're right - the manual sounds out of date, I'll take a look
 > at clearing this up; the default shouldn't be your home directory.

The manual now reads as follows, which I think is clearer
(ess-directory-function was not mentioned).


3.5 Changing the startup actions

If you do not wish ESS to prompt for a starting directory when starting
a new process, set the variable `ess-ask-for-ess-directory' to `nil'.
In this case, the starting directory will be set using one of the
following methods:

  1. If the variable `ess-directory-function' stores the name of a
     function, the value returned by this function is used.  The
     default for this variable is nil.

  2. Otherwise, if the variable `ess-directory' stores the name of a
     directory (ending in a slash), this value is used.  The default
     for this variable is nil.

  3. Otherwise, the working directory of the current buffer is used.

   If `ess-ask-for-ess-directory' has a non-`nil' value (as it does by
default) then the value determined by the above rules provides the
default when prompting for the starting directory.  Incidentally,
`ess-directory' is an ideal variable to set in `ess-pre-run-hook'.

More information about the ESS-help mailing list