Unix installation ESS ================= 1. cd to a directory where you want to install ESS, creating it if necessary. This directory will be referred to below as ESSDIR. 2. Download the zip file from the 290 web site - or - retrieve the latest version from zipped (http://software.biostat.washington.edu/ess/ess-VERSION.zip) to ESSDIR. 3. Decompress/unarchive the files from the disribution. unzip ess-VERSION.zip 4. Edit the file `ESSDIR/ess-VERSION/lisp/ess-site.el' search for the line with S+6 remove the ;; in front of the line and replace Splus6 with Splus as below (setq-default inferior-S+6-program-name "Splus") 5. Add the line (load "ESSDIR/ess-VERSION/lisp/ess-site") to your user configuration file ~/.emacs (edit as emacs .emacs) i.e (load "/afs/acpub.duke.edu/users11/clyde/ess-5.1.24/lisp/ess-site") 6. That's it! To edit statistical programs, load the files with the requiste extensions (".sas" for SAS, ".S" for S-PLUS, ".R" for R, and ".lsp" for XLispStat). 7. (OPTIONAL) If you are running S-PLUS or R, you might consider installing the database files. From within emacs, `C-x d' to the directory containing ESS. Now: M-x S get running. once you have reached the SPLUS prompt, do: M-x ess-create-object-name-db (this will create the file `ess-s+6-namedb.el'; if it isn't in the ESS directory, move it there). Then, completions will be autoloaded and will not be regenerated for every session. For R, do the same, using M-x R and then `M-x ess-create-object-name-db' creating `ess-r-namedb.el'; if it isn't in the ESS directory, move it there). Microsoft Windows installation ============================== For Microsoft Windows installation, please follow the next steps: (see separate instructions above for UNIX *Note Unix installation::. 1. cd to a directory where you keep emacs lisp files, or create a new directory (for example, `c:\emacs\') to hold the distribution. This directory will be referred to below as "the ESS distribution directory". It will contain, at the end, either the tar file `ess-VERSION.tar.gz' or the zip file `ess-VERSION.zip', and a directory for the ESS source, which will be termed "the ESS-VERSION source directory". 2. Retrieve the compressed tar file `ess-VERSION.tar.gz' or the zipped file `ess-VERSION.zip' from one of the FTP or WWW archive sites via FTP (or HTTP). Be aware that http browsers on Windows frequently change the "." and "-" characters in filenames to other punctuation. Please change the names back to their original form. 3. Copy `ess-VERSION.tar.gz' to the location where you want the ess-VERSION directory, for example to `c:\emacs\ess-VERSION.tar.gz', and cd there. For example, cd c:\emacs Extract the files from the distribution, which will unpack into a subdirectory, `ess-VERSION'. gunzip ess-VERSION.tar.gz tar xvf ess-VERSION.tar (or: `gunzip < ess-VERSION.tar.gz | tar xvf -' ). (or: from the zip file: `unzip ess-VERSION.zip') The `tar' command will extract files into the current directory. Do not create `ess-VERSION' yourself, or you will get an extra level of depth to your directory structure. 4. Windows users will usually be able to use the `lisp/ess-site.el' as distributed. Only rarely will changes be needed. 5. Windows users will need to make sure that the directories for the software they will be using is in the PATH environment variable. On Windows 9x, add lines similar to the following to your `c:\autoexec.bat' file: path=%PATH%;c:\progra~1\spls2000\cmd On Windows NT/2000, add the directories to the PATH using the MyComputer menu. Note that the directory containing the program is added to the PATH, not the program itself. One such line is needed for each software program. Be sure to use the abbreviation `progra~1' and not the long version with embedded blanks. Use backslashes "\". 6. Add the line (load "/PATH/ess-site") to your .emacs (or _emacs) file (or default.el or site-init.el, for a site-wide installation). Replace `/PATH' above with the value of ess-lisp-directory as defined in `ess-site.el'. Use forwardslashes `/'. (GNU Emacs uses the filename `%HOME%/.emacs' and XEmacs uses the filename `%HOME%/.xemacs/init.el' for the initialization file.) 7. To edit statistical programs, load the files with the requisite extensions (".sas" for SAS, ".S" or "s" or "q" or "Q" for S-PLUS, ".r" or ".R" for R, and ".lsp" for XLispStat). 8. To run statistical processes under emacs: Run S-PLUS 6.x or 2000 with: M-x S+6 (or `M-x S'). You will then be asked for a pathname ("S starting data directory?"), from which to start the process. The prompt will propose your current directory as the default. Similarly for S-PLUS 6.x. Send lines or regions from the emacs buffer containing your S program (for example, `myfile.s') to the S-Plus Commands Window with the `C-c C-n' or `C-c C-r' keys. Run S-PLUS 6.x or 2000 inside an emacs buffer M-x Sqpe+6 You will then be asked for a pathname ("S starting data directory?"), from which to start the process. The prompt will propose your current directory as the default. Similarly for S-PLUS 6.x. Send lines or regions from the emacs buffer containing your S program (for example, `myfile.s') to the *S+6* buffer with the `C-c C-n' or `C-c C-r' keys. You do not have access to interactive graphics in this mode. You get Unix-like behavior, in particular the entire transcript is available for emacs-style search commands. If you wish to run R, you can start it with: M-x R XLispStat can not currently be run with M-x XLS Hopefully, this will change. However, you can still edit with emacs, and cut and paste the results into the XLispStat *Listener* Window under Microsoft Windows. SAS for Windows uses the batch access with function keys that is described in `doc/README.SAS'. The user can also edit SAS files in an `ESS[SAS]' buffer and than manually copy and paste them into an Editor window in the SAS Display Manager. For Windows, inferior SAS in an `iESS[SAS]' buffer does not work on the local machine. It does work over a network connection to SAS running on a remote Unix computer. Reason: we use ddeclient to interface with programs and SAS doesn't provide the corresponding ddeserver capability. 9. (OPTIONAL) If you are running Sqpe or R, you might consider installing the database files. From within emacs, `C-x d' to the directory containing ESS. Now: M-x Sqpe+6 (get running. once you have reached the SPLUS prompt, do:) M-x ess-create-object-name-db (this will create the file `ess-s+6-namedb.el'; if it isn't in the ESS directory, move it there). Then, completions will be autoloaded and will not be regenerated for every session. For R, do the same, using M-x R and then `M-x ess-create-object-name-db' creating `ess-r-namedb.el'; if it isn't in the ESS directory, move it there). 10. That's it! Requirements ============ ESS works best with either GNU Emacs version 20.3 or higher, or XEmacs version 20.0 or higher. It has been most thoroughly tested with: * S-PLUS versions 3.3, 3.4, 4.5, 5.0, 5.1, 6 * R versions >=0.49 * S4 * SAS 6.x, 7.x, 8.x * BUGS 0.5, 0.603 * Stata >=6.0 * XLispStat versions >=3.50 on the following platforms * Solaris/SunOS (all) * SGI (all) * Linux (S4, S-PLUS 5.x, R, XLispStat, Stata 6.0) * Microsoft Windows 95/98/NT/2000 (SPLUS 4.5 and 2000) * Apple Mac OS (SAS for OS 9 and X11 R for OS X) with the following versions of emacs * GNU Emacs 20.3, 20.4, 20.5, 20.6, 20.7, 21.1 * XEmacs 20.0, 20.4, 21.0, 21.1.13, 21.1.14, 21.4 * XEmacs 19.14, 19.16 and GNU Emacs 19.28, 19.29, 19.34(1) ---------- Footnotes ---------- (1) Note that you must have `custom' support. It is available at The Custom Library (http://www.dina.kvl.dk/~abraham/custom/). These releases of emacs are no longer supported, so an upgrade is recommended if you plan to use ESS. If you have GNU Emacs 19.29, see *Note Unix installation::. Reporting Bugs ============== Please send bug reports, suggestions etc. to The easiest way to do this is within Emacs by typing `M-x ess-submit-bug-report' This also gives the maintainers valuable information about your installation which may help us to identify or even fix the bug. Note that comments, suggestions, words of praise and large cash donations are also more than welcome. Mailing Lists ============= There is a mailing list for discussions and announcements relating to ESS. Join the list by sending an e-mail with "subscribe ess-help" (or "help") in the body to ; contributions to the list may be mailed to . Rest assured, this is a fairly low-volume mailing list. The purposes of the mailing list include * helping users of ESS to get along with it. * discussing aspects of using ESS on Emacs and XEmacs. * suggestions for improvements. * announcements of new releases of ESS. * posting small patches to ESS. Authors ======= * A.J. Rossini (mailto:rossini@u.washington.edu) * Richard M. Heiberger (mailto:rmh@surfer.sbm.temple.edu) * Kurt Hornik (mailto:hornik@ci.tuwien.ac.at) * Martin Maechler (mailto:maechler@stat.math.ethz.ch) * Rodney A. Sparapani (mailto:rsparapa@mcw.edu)