editing .emacs-file for ess (windows version)
Rich Heiberger
rmh at surfer.sbm.temple.edu
Wed Oct 17 19:30:00 CEST 2001
What is R-directory and why do you want to set it? It is not one of
the variables that ESS uses.
If I were using it I would add the line
(setq R-directory "d:/R")
to my .emacs file. I wouldn't bother with pre-run hooks for this case.
NTemacs uses either "D:/R" or "D:\\R".
My guess is that you are looking for ess-directory. See the file
ess-5.1.19/lisp/ess-site.el and go to section (3.5) for a discussion
of how to set this directory.
I personally always take the default action. The way I start R is to
open dired in the directory I wish to be in and then M-x R from the
dired buffer.
What else do you mean by "customize our ESS for R under windows 2000"?
ESS works correctly out of the box. The only item that needs
customization is the location of the R executable.
The easiest way is to include "d:/Apps/R/rw1031/bin" (for example, on
my office machine) in the emacs variable exec-path. You can do it at
the .emacs level with
(setq exec-path (append exec-path (list "d:/Apps/R/rw1031/bin")))
or you can add d:/Apps/R/rw1031/bin to the environment variable
PATH at the Windows level before starting emacs.
A second way is to set the lisp variable (also in .emacs) to
(setq inferior-R-program-name "d:/Apps/R/rw1031/bin/Rterm")
Only one of these is needed. I choose to set exec-path in .emacs
and never touch ess-site.el
Rich
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list