setting up ess-source-directory

Mary Lindstrom lindstro at
Wed Feb 2 22:07:25 CET 2000

I'm switching from S-mode to ess-mode and I installed version 5.1.9.

In my .emacs file I have the following:

(add-hook 'inferior-ess-mode-hook
	  (function (lambda()
		      (setq ess-source-directory
				(expand-file-name (concat
						   (car ess-search-list)
		      (setq ess-dump-filename-template  (concat "%s." 

The intent is to have my function source files have the form
<function-name>.S and live in a directory <project>/Src/ where
<project>/.Data/ is the .Data directory active when the S session

If I use the code above and then dump a function to a file from an S+3
session, it ends up in the correct directory but the default
ess-dump-filename-template is used (that is, my login name is
prepended to the name of the file). If I comment out the definition of
ess-source-directory, the name of the file is correct but it gets
dumped to /tmp/.

I've tried switching the order of the two definitions and putting them
into various other hooks but I get the same behavior.

I'm stumped.  Any help appreciated.

- Mary

ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at

More information about the ESS-help mailing list