setting up ess-source-directory

Brett Presnell presnell at
Thu Feb 3 02:49:02 CET 2000

In message <87n1pjayzw.fsf at> you write:
> >>>>> "BP" == Brett Presnell <presnell at> writes:
> Nope, I complain about it, occassionally.  There is a solution, which
> I'd have told you about, Brett, if you'd bothered to reply.

Ok, sorry about that.  You suggested this fix for the directory name
problem I was having:

>     BP> (setq ess-source-directory
>     BP> 	  (lambda () (file-name-as-directory
>     BP> 		      (expand-file-name
>     BP> 		       (concat (car ess-search-list)
>     BP> 			       "/" ess-suffix "-src")))))
> I think I'd want to do something like replace
> 	  (concat (car ess-search-list)
> with
> 	  (concat (if (string= ess-dialect "R")
> 		      "./"
> 		   (car ess-search-list))
> or similar.  (note - the above is untested code, it gives the flavor,
> but I've not compiled nor run it).

I just tried this and it works to get the directory name that I wanted
(R-src with R, S-src with S).  Here's what I now have in my .emacs for

(setq ess-source-directory
		  (lambda () (file-name-as-directory
			       (concat (if (string= ess-dialect "R")
					 (car ess-search-list))
				       "/" ess-suffix "-src")))))

However, the main problem is really that ess-dump-filename-template is
ignored in both R and S modes (this is Mary's problem too).  That's
why I gave up and decided to wait until all this was fixed.

> Right.  but the problem is that the packages I'm using it on tend to
> be Stata (for data analysis), XLispStat, and R...  and I'm somewhat
> altruistic, but not at the expense of features that I need...

Yeah, I knew I was being selfish about that one.  I just don't know
anyone else who uses Stata.  ;-)

> It's not, it's more "facts of life".  I wish we had more developers.
> I'm out of time, ...

Yes, I knew this.  Anyway, again, I didn't mean to denigrate your
efforts in any way.  I'll certainly be looking forward to trying the
next release whenever it comes.

Best regards,


Brett Presnell
Department of Statistics
University of Florida
(presnell at
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