63
41
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
64
42
in the file COPYING in the same directory as this file for more details.
47
Changes/New Features in 5.2.6:
48
* Removed non-ASCII characters in a few files.
50
* ESS[R]: now works better when UTF-8 locale is active; in
51
particular, you get correct directional quotes in R's startup
52
message for R-devel (unstable development version of R 2.1.0)
53
when using environment variables LANGUAGE=en@quot
56
* ESS[SAS]: toggling of .log mode improved (`F10'); toggling of .lst
57
mode now also available (`C-F10'); killing all buffers associated
58
with .sas program no longer bound to `C-F10' since its a bit
59
overzealous; EXPERIMENTAL new feature: if your .log grows to more
60
than 2.5MB, just the first 2.5MB are refreshed; this is helpful
61
when your .sas program generates lots of error messages and gets
62
too big for emacs to display; the truncation size is controlled by
63
the variable ess-sas-log-max and defaults to 2500000.
65
* S-Plus 7 for Windows is now recognized.
67
* ESS[S] (incl. R): in auto-fill mode, strings are not wrapped
70
* ESS[S] (incl. R): font-lock now correctly differs between R and S,
71
e.g., for "_"; both now fontify warning(.) and S does terminate()
74
* Support for `bell' aka `beep' aka `ding' aka `alarm' in all
75
inferior modes: When \a is output "to the the console" at the
76
beginning of a line, the bell is rung.
78
Changes/New Features in 5.2.5:
79
* ESS[R]: `C-c C-q' or `Quit S' from the menu now should work (again
80
and less klunkily) and do not append `-exited' to the buffer name.
81
Further, the behavior of `(ess-cleanup)', called from ess-quit,
82
now depends on the new customizable variable
83
`ess-S-quit-kill-buffers-p' which defaults to `nil'.
84
Consequently, the question _"Delete all buffers associated with
85
..?"_ will not be asked anymore by default.
87
* ESS[SAS] - ess-ebcdic-to-ascii-search-and-replace will now work
88
with the `recode' application as well which is available on many
91
* ESS[S] (incl. R): Name completion for slots of S4 objects now
94
Changes/New Features in 5.2.4:
95
* The documentation now includes an overview of how to use the emacs
96
TAGS facility for S functions. (The distribution also used to
97
contain a directory `etc/other/Tags' where a ~1990 version of
98
`etags.c' was distributed; this is no longer relevant and so has
101
* ESS[SAS] - When you are working with EBCDIC files on an ASCII
102
platform, .log NOTEs may display as gibberish since the EBCDIC
103
characters are not converted to ASCII prior to their display. So,
104
the function ess-ebcdic-to-ascii-search-and-replace is provided for
105
convenience and is bound to `C-F11'. This function requires the
106
`dd' command (only available on unix or unix-like platforms).
108
* ESS: Completion of object names is now always done dynamically
109
rather than allowing the option of using a pre-computed database
110
(by `ess-create-object-name-db') since modern computers seem fast
111
enough for dynamic completion. (We expect few users, if any, have
112
been using the pre-computed database method.)
114
* ESS: object completion in iESS buffers running on Windows was very
115
slow (for GNU Emacs, but not XEmacs) and has now been fixed.
116
Further, it was more or less broken for all versions of S-plus 6.x,
117
and has been fixed to work everywhere but with the Windows' GUI of
118
S-plus. The list of objects now shows unique names also when an
119
object appears more than once in the search path.
121
* ESS[R]: Completion of object names now also includes those
124
Changes/New Features in 5.2.3:
125
* ESS: When new inferior ESS processes are created, by default they
126
will replace the current buffer (this restores behavior from pre
127
5.2.0). If you wish new ESS processes to start in another window
128
of the current frame, set inferior-ess-same-window to nil.
130
* New variables inferior-Splus-args and inferior-R-args provide a
131
way to pass command line arguments to starting S and R processes.
133
Changes/New Features in 5.2.2:
134
* bug-fixes for 5.2.1 (require 'executable), html docs, etc.
136
* ess-lisp-directory/../doc/info added to Info-directory-list if
137
ess-info not found by info
139
* ESS[R]: If you have other versions of R on your exec-path, such as
140
"R-1.8.1" with Unix or "rw1081" with Windows, ESS will find them
141
and create appropriate functions, such as M-x R-1.8.1 or M-x
142
rw1081, for calling them. By default only Unix programs beginning
143
"R-1" and "R-2" and Windows programs parallel to the version of R
144
in your exec-path will be found, but see ess-r-versions and
145
ess-rterm-versions for ways to find other versions of R.
147
* ESS[R]: Other versions of R, such as "R-1.8.1" on Unix and
148
"rw1081" on Windows, are added to the "ESS / Start Process /
151
* ESS[S]: If you have other versions of S-Plus on your Windows
152
computer, such as S-Plus 6.1 or S-Plus 4.5, ESS will find them and
153
create appropriate functions, such as M-x splus61, for calling the
154
console version (Sqpe) inside an emacs buffer. By default only
155
programs installed in the default location will be found, but see
156
ess-SHOME-versions for ways to find other versions of S-Plus.
158
* ESS[S]: Other versions of Sqpe on Windows, such as "splus61", are
159
added to the "ESS / Start Process / Other" menu.
161
* ESS[R]: (bug fix) ess-quit (bound to C-c C-q) should now quit the
162
inferior R process, when issued from either the inferior buffer,
165
Changes/New Features in 5.2.1:
166
* ESS[S] (R and S-plus): now have toolbar support with icons to
167
evaluate code in the inferior process or to switch there. This
168
code is experimental and likely to change as XEmacs/Emacs issues
169
get resolved. The toolbar should be enabled if your Emacs displays
170
images, but can be disabled with the variable ess-use-toolbar.
171
Thanks to David Smith from Insightful for the S-plus logo.
173
* ESS[SAS]: ess-sas-graph-view (F12) enhanced; you can specify
174
external file viewers for each graphics file type via the alist
175
ess-sas-graph-view-viewer-alist; also .jpg/.gif are now handled by
176
image-mode on XEmacs, if available, otherwise by graphics
179
Changes/New Features in 5.2.0:
180
* ESS[BUGS]: new info documentation! now supports interactive
181
processing thanks to Aki Vehtari (mailto:Aki.Vehtari@hut.fi); new
182
architecture-independent unix support as well as support for BUGS
185
* ESS[SAS]: convert .log to .sas with ess-sas-transcript; info
186
documentation improved; Local Variable bug fixes; SAS/IML
187
statements/functions now highlighted; files edited remotely by
188
ange-ftp/EFS/tramp are recognized and pressing SUBMIT opens a
189
buffer on the remote host via the local variable
190
ess-sas-shell-buffer-remote-init which defaults to "ssh"; changed
191
the definition of the variable ess-sas-edit-keys-toggle to boolean
192
rather than 0/1; added the function ess-electric-run-semicolon
193
which automatically reverse indents lines containing only "run;";
194
C-F1 creates MS RTF portrait from the current buffer; C-F2 creates
195
MS RTF landscape from the current buffer; C-F9 opens a SAS DATASET
196
with PROC INSIGHT rather than PROC FSVIEW; "inferior" aliases for
197
SAS batch: C-c C-r for submit region, C-c C-b for submit buffer,
198
C-c C-x for goto .log; C-c C-y for goto .lst
200
* ESS[S]: Pressing underscore ("_") once inserts " <- " (as before);
201
pressing underscore twice inserts a literal underscore. To stop
202
this smart behaviour, add "(ess-smart-underscore nil)" to your
203
.emacs after ess-site has been loaded;
204
ess-dump-filename-template-proto (new name!) now can be customized
205
successfully (for S language dialects); Support for Imenu has been
206
improved; set ess-imenu-use-S to non-nil to get an "Imenu-S" item
207
on your menubar; ess-help: Now using nice underlines (instead of
210
* ESS[R]: After (require 'essa-r), M-x ess-r-var allows to load
211
numbers from any Emacs buffer into an existing *R* process; M-x
212
ess-rdired gives a "directory editor" of R objects; fixed
213
ess-retr-lastvalue-command, i.e. .Last.value bug (thanks to David
216
* ESS: Support for creating new window frames has been added to ESS.
217
Inferior ESS processes can be created in dedicated frames by
218
setting inferior-ess-own-frame to t. ESS help buffers can also
219
open in new frames; see the documentation for ess-help-own-frame
220
for details. (Thanks to Kevin Rodgers for contributing code.)
222
Changes/New Features in 5.1.24:
223
* The version number is now correct even inside ESS/Emacs
225
Changes/New Features in 5.1.23:
226
* Minor more Makefile clean up.
228
Changes/New Features in 5.1.22:
229
* Besides info documentation, PDF and HTML documentation are also
230
provided (instead of built using "make") and available on the web
231
as well; see ESS web page (http://ess.r-project.org/) and StatLib
232
(http://lib.stat.cmu.edu/general/ESS/doc)
234
* Now that info documentation is available, the README.* files are
235
no longer supported. However, they are still distributed for what
238
* ESS is now an XEmacs package! See XEmacs Installation HOWTO
239
(http://www.xemacs.org/Install/index.html) for details
240
(specifically, items 10-15).
242
* ESS[SAS]: more user-friendly enhancements for remote SAS batch
243
jobs with Kermit file transfers (LOG and OUTPUT function key
244
features now supported). Multiple shells now supported so you can
245
run SAS on different computers from different buffers by setting
246
the buffer-local variable ess-sas-shell-buffer to unique buffer
249
* Major re-vamping of Makefile/Makeconf.
251
Changes/New Features in 5.1.21:
252
* ESS[SAS]: info documentation now available!, see ESS->Help for
253
SAS; F12 opens GSASFILE nearest point for viewing either within
254
emacs, when available, or via an external viewer; more syntax
255
highlighting keywords; more enhancements for remote SAS batch jobs
256
with Kermit; new framework for remote SAS interactive jobs, see
259
* ESS[S]: info documentation now available!, see ESS->Help for the S
262
* Makefile: tag now independent of rel; info files made by
263
doc/Makefile and installed in new info sub-directory
69
265
Changes/New Features in 5.1.20:
70
266
* New `options()$STERM' in the S dialects (S, S-Plus, R). The S
315
Versions 5.1.x are meant to be gamma-level releases. While some bugs
316
are fixed, others may have been introduced, especially with regards to
317
new features. See the file doc/TODO for details. Bug reports are
318
solicited; see the Bugs Section below. Patches or suggested coding
319
fixes with bug reports are much appreciated!
324
ESS version 5.1.n (n >= 2) requires Emacs version 19.34(1) or later,
325
or version XEmacs 19.14 or later. It has been most thoroughly tested
328
* S-PLUS versions 3.3, 3.4, 4.5, 5.0, 5.1, 6
505
Versions 5.2.x are meant to be release-quality versions. While some
506
new features are being introduced, we are cleaning up and improving the
507
interface. We know about some remaining documentation inconsistencies.
508
Patches or suggested fixes with bug reports are much appreciated!
513
ESS has been tested with
515
* S-PLUS 3.3-4, 4.5, 2000, 5.0-1, 6.0-2, 7.0
340
* XLispStat versions >=3.50
342
529
on the following platforms
344
533
* Solaris/SunOS (all)
348
* Linux (S-PLUS 5.0, 5.1, R, XLispStat, S4, Stata 6.0)
350
* Microsoft Windows 95/98/NT/2000 (SPLUS 4.5 and 2000)
352
* Apple Mac OS: 9 (SAS), X.1 (X11 R)
535
* Microsoft Windows 95/98/NT/2000/XP (SPLUS 4.5/2000/6.*, R, SAS and
538
* Apple Mac OS (SAS for OS 9 and R for OS X)
354
540
with the following versions of emacs
356
* Emacs 19.34, 20.3, 20.4, 20.5, 20.6, 20.7, 21.1
358
* XEmacs 19.14, 19.16, 20.0, 20.4, 21.0, 21.1.13, 21.4.x
360
* Emacs 19.28, 19.29 (see footnote)
542
* GNU Emacs 20.3-7, 21.1, 21.3, 21.4
544
* XEmacs 21.0, 21.1.13-14, 21.4.0-8, 21.4.9-13(1), 21.4.14-15,
362
547
---------- Footnotes ----------
364
(1) if you have Emacs 19.29, you _may_ get it to work after
365
unpacking `19.29.tar.gz', see the installation instructions
367
Getting the Latest Version
368
==========================
370
The latest stable version of ESS is always available on the web at:
371
http://software.biostat.washington.edu/statsoft/ess/ or
372
http://lib.stat.cmu.edu/general/ESS/
374
Installation (from tar file)
375
============================
377
We now discuss installation, which might happen under Unix or
378
Microsoft Windows. First, we discuss Unix installation. *Note Unix
549
(1) require the files.el patch to revert-buffer for the Local
550
Variables updating problem
552
1.6 Getting the Latest Version
553
==============================
555
The latest released version of ESS is always available on the web at:
556
ESS web page (http://ess.r-project.org) or StatLib
557
(http://lib.stat.cmu.edu/general/ESS/)
559
The latest development version of ESS is available via
560
`https://svn.R-project.org/ESS/', the ESS Subversion repository. If
561
you have a Subversion client (see `http://subversion.tigris.org/'), you
562
can download the sources using:
563
% svn checkout https://svn.r-project.org/ESS/trunk PATH
564
which will put the ESS files into directory PATH. Later, within
565
that directory, `svn update' will bring that directory up to date.
566
Windows-based tools such as TortoiseSVN are also available for
567
downloading the files. Alternatively, you can browse the sources with a
568
web browser at: ESS SVN site (https://svn.r-project.org/ESS/trunk).
569
However, please use a subversion client instead to minimize the load
572
If you remove other versions of ESS from your emacs load-path, you
573
can then use the development version by adding the following to .emacs:
575
(load "/path/to/ess-svn/lisp/ess-site.el")
577
Note that https is required, and that the SSL certificate for the
578
Subversion server of the R project is
580
Certificate information:
581
- Hostname: svn.r-project.org
582
- Valid: from Jul 16 08:10:01 2004 GMT until Jul 14 08:10:01 2014 GMT
583
- Issuer: Department of Mathematics, ETH Zurich, Zurich, Switzerland, CH
584
- Fingerprint: c9:5d:eb:f9:f2:56:d1:04:ba:44:61:f8:64:6b:d9:33:3f:93:6e:ad
586
(currently, there is no "trusted certificate"). You can accept this
587
certificate permanently and will not be asked about it anymore.
589
1.7 Installation (from tar file)
590
================================
592
We now discuss installation, which might happen under Unix or Microsoft
593
Windows. First, we discuss Unix installation. *Note Unix
381
596
For Microsoft Windows Installation please skip to the *Note
382
597
Microsoft Windows installation::.
387
1. cd to a directory where you keep emacs lisp files, or create a
388
new directory to hold the distribution. This directory will be
389
referred to below as "the ESS distribution directory". It will
390
contain, at the end, the tar file `ess-5.1.20.tar.gz', and a
391
directory for the ESS source, which will be termed "the
392
ESS-5.1.20 source directory".
394
Note that the .elc files may be installed elsewhere (as specified
395
in the Makefile) if desired.
397
2. Retrieve the gzipped tar file or zipped file from
398
http://software.biostat.washington.edu/statsoft/ess/essDL
400
3. Copy `ess-5.1.20.tar.gz' to the location where you want the
401
ESS-5.1.20 directory, and cd there. Extract the files from the
402
distribution, which will unpack into a subdirectory, ess-5.1.20.
403
gunzip ess-5.1.20.tar.gz
404
tar vxf ess-5.1.20.tar
405
(or: `gunzip < ess-5.1.20.tar.gz | tar vxf -' ). (or using GNU
406
tar: `tar zvxf ess-5.1.20.tar.gz').
408
The `tar' command will extract files into the current directory.
409
Do not create ess-5.1.20 yourself, or you will get an extra level
410
of depth to your directory structure.
412
Note if you have a very ancient version of GNU emacs (_and_ really
413
can not upgrade to Emacs 20 or higher!) you can unpack the
414
`lisp/19.29.tar.gz' file, read the ensuing `lisp/19.29/README'
415
and you may succeed...
417
4. Edit the file `lisp/ess-site.el' as explained in the comments
418
section of that file. Installations that are using ESS only for
419
S-Plus 6.x will probably not need to make any changes.
420
Installations that also have one or more of (S+5 S4 S+4 S+3 R
421
SAS XLispStat Stata) may need to uncomment corresponding lines
424
5. READ THIS ITEM THOROUGHLY BEFORE STARTING:
426
In the ess-5.1.20 directory, edit the file `Makeconf' (only if you
427
want to place the executables in other locations; see LISPDIR and
428
INFODIR) and then type:
431
If this works, then you might try:
433
Note that the latter does the former as well, so if you are
434
feeling lucky, you might want to skip it.
436
This will install the info files (and the lisp files, if they are
437
to go in another directory). Don't forget to edit the file
438
`dir' in the info directory specified by `INFODIR' in
439
`doc/Makefile'. See the sample `dir' file for an example of the
442
If you are using XEmacs, you might do:
446
make EMACS=xemacs install
447
instead of editing the Makefile.
449
_Note_ that you might need to use GNU make for everything to
452
An alternative, if you are running XEmacs and have access to the
453
XEmacs system directories, would be to place the directory in the
454
site-lisp directory, and simply type `make' (and copy the
455
documentation as appropriate).
457
For Emacs, you would still have to move the files into the top
458
level site-lisp directory.
461
(load "/PATH/ess-site")
462
to your .emacs file (or default.el or site-init.el, for a
463
site-wide installation). Replace `/PATH' above with the value of
464
ess-lisp-directory as defined in ess-site.el.
466
Alternatively, if ess-site.el is in your current Lisp path, you can
469
to configure Emacs for ESS.
471
7. (OPTIONAL) If you are running S-PLUS or R, you might consider
472
installing the database files. From within (X)Emacs, `C-x d' to
473
the directory containing ESS. Now:
475
(or `M-x S+5': get running. once you have reached the SPLUS
477
M-x ess-create-object-name-db
478
(this will create the file `ess-s+6-namedb.el'; if it isn't in
479
the ESS directory, move it there).
481
Then, completions will be autoloaded and will not be regenerated
484
For R, do the same, using
486
and then `M-x ess-create-object-name-db' creating
487
`ess-r-namedb.el'; if it isn't in the ESS directory, move it
490
8. For more information on using ESS in your daily work, see the
491
files README.S, README.SAS, and README.XLispStat.
493
For the impatient, the quick version of usage follows:
495
9. To edit statistical programs, load the files with the requiste
496
extensions (".sas" for SAS, ".S" for S-PLUS, ".R" for R, and
497
".lsp" for XLispStat).
499
10. To run statistical processes under (X)Emacs:
503
(or M-x S using backwards compatibility). You will then be
504
asked for a pathname ("S starting data directory?"), from which
505
to start the process. Similarly for S-PLUS 5.x.
507
If you wish to run R, you can start it with:
510
XLispStat can be run with
513
An interactive SAS can be run in an `iESS[SAS]' buffer with:
515
This works when SAS is running on a Unix machine, either the local
516
machine or over a network connection. M-x SAS does not work when
517
SAS is running on a Windows machine.
521
Microsoft Windows installation
522
==============================
524
For Microsoft Windows installation, please follow the next steps:
525
(see separate instructions above for UNIX *Note Unix installation::.
527
1. cd to a directory where you keep emacs lisp files, or create a
528
new directory (for example, `c:\emacs\') to hold the
529
distribution. This directory will be referred to below as "the
530
ESS distribution directory". It will contain, at the end,
531
either the tar file `ess-5.1.20.tar.gz' or the zip file
532
`ess-5.1.20.zip', and a directory for the ESS source, which
533
will be termed "the ESS-5.1.20 source directory".
535
2. Retrieve the compressed tar file `ess-5.1.20.tar.gz' or the
536
zipped file `ess-5.1.20.zip' from one of the FTP or WWW
537
archive sites via FTP (or HTTP). Be aware that http browsers
538
on Windows frequently change the "." and "-" characters in
539
filenames to other punctuation. Please change the names back
540
to their original form.
542
3. Copy `ess-5.1.20.tar.gz' to the location where you want the
543
ess-5.1.20 directory, for example to
544
`c:\emacs\ess-5.1.20.tar.gz', and cd there. For example,
548
Extract the files from the distribution, which will unpack
549
into a subdirectory, `ess-5.1.20'.
550
gunzip ess-5.1.20.tar.gz
551
tar vxf ess-5.1.20.tar
552
(or: `gunzip < ess-5.1.20.tar.gz | tar vxf -' ).
553
(or: from the zip file: `unzip ess-5.1.20.zip')
555
The `tar' command will extract files into the current directory.
557
Do not create `ess-5.1.20' yourself, or you will get an extra level
558
of depth to your directory structure.
560
4. Windows users will usually be able to use the
561
`lisp/ess-site.el' as distributed. Only rarely will changes
564
5. Windows users will need to make sure that the directories
565
for the software they will be using is in the PATH
566
environment variable. On Windows 9x, add lines similar to
567
the following to your `c:\autoexec.bat' file:
568
path=%PATH%;c:\progra~1\spls2000\cmd
569
On Windows NT/2000, add the directories to the PATH using the
570
MyComputer menu. Note that the directory containing the
571
program is added to the PATH, not the program itself. One
572
such line is needed for each software program. Be sure to
573
use the abbreviation `progra~1' and not the long version with
574
embedded blanks. Use backslashes "\".
577
(load "/PATH/ess-site")
578
to your .emacs (or _emacs) file (or default.el or
579
site-init.el, for a site-wide installation). Replace `/PATH'
580
above with the value of ess-lisp-directory as defined in
581
`ess-site.el'. Use forwardslashes `/'.
583
7. (OPTIONAL) If you are running Sqpe or R, you might consider
584
installing the database files. From within (X)Emacs, `C-x d'
585
to the directory containing ESS. Now:
587
(get running. once you have reached the SPLUS prompt, do:)
588
M-x ess-create-object-name-db
589
(this will create the file `ess-s+6-namedb.el'; if it isn't
590
in the ESS directory, move it there).
592
Then, completions will be autoloaded and will not be regenerated
595
For R, do the same, using
597
and then `M-x ess-create-object-name-db' creating
598
`ess-r-namedb.el'; if it isn't in the ESS directory, move it
601
8. For more information on using ESS in your daily work, see the
602
files doc/README.SPLUS4WIN, doc/README.S, doc/README.SAS, and
603
doc/README.XLispStat.
605
For the impatient, the quick version of usage follows:
607
9. To edit statistical programs, load the files with the
608
requisite extensions (".sas" for SAS, ".S" or "s" or "q" or
609
"Q" for S-PLUS, ".r" or ".R" for R, and ".lsp" for
612
10. To run statistical processes under (X)Emacs:
614
Run S-PLUS 6.x or 2000 with:
616
(or `M-x S'). You will then be asked for a pathname
617
("S starting data directory?"), from which to start the
618
process. The prompt will propose your current directory as
619
the default. Similarly for S-PLUS 6.x. Send lines or regions
620
from the emacs buffer containing your S program (for example,
621
`myfile.s') to the S-Plus Commands Window with the `C-c C-n'
624
Run S-PLUS 6.x or 2000 inside an emacs buffer
626
You will then be asked for a pathname ("S starting data
627
directory?"), from which to start the process. The prompt will
628
propose your current directory as the default. Similarly for
629
S-PLUS 6.x. Send lines or regions from the emacs buffer
630
containing your S program (for example, `myfile.s') to the
631
*S+6* buffer with the `C-c C-n' or `C-c C-r' keys. You do
632
not have access to interactive graphics in this mode.
633
You get Unix-like behavior, in particular the entire
634
transcript is available for emacs-style search commands.
636
If you wish to run R, you can start it with:
599
1.8 Unix installation
600
=====================
602
1. cd to a directory where you want to install ESS, creating it if
603
necessary. This directory will be referred to below as ESSDIR.
605
2. Retrieve the latest version from ESS downloads area
606
(http://ess.r-project.org/downloads/ess) to ESSDIR.
608
3. Decompress/unarchive the files from the disribution.
609
gunzip ess-VERSION.tar.gz
610
tar xvf ess-VERSION.tar
612
(or: `gunzip < ess-VERSION.tar.gz | tar xvf -' ).
613
(or using GNU tar: `tar zxvf ess-VERSION.tar.gz').
615
The `tar' command will create the subdirectory ess-VERSION and
616
unarchive the files there.
618
4. Edit the file `ESSDIR/ess-VERSION/lisp/ess-site.el' as explained
619
in the comments section of that file.
622
(load "ESSDIR/ess-VERSION/lisp/ess-site")
623
to your user or system installation file (GNU Emacs uses
624
`$HOME/.emacs' and XEmacs uses `$HOME/.xemacs/init.el' for the
625
user initialization file. GNU Emacs uses default.el or
626
site-init.el and XEmacs uses site-start.el for the system
629
Alternatively, if ess-site.el is in your current Lisp path, you
632
to configure emacs for ESS.
634
6. That's it! If you are installing just a local copy of ESS for
635
yourself, ESS is now ready to be used. (The remaining step below
636
is for advanced installation.) To edit statistical programs, load
637
the files with the requiste extensions (".sas" for SAS, ".S" for
638
S-PLUS, ".R" for R, and ".lsp" for XLispStat). To start a
639
statistical process within Emacs, such as R, type `M-x R'.
641
7. (OPTIONAL) READ THIS ITEM THOROUGHLY BEFORE STARTING:
643
If you want to place the compiled files in other locations edit
644
the LISPDIR and INFODIR entries in `Makeconf' in the
645
ESSDIR/ess-VERSION directory (if you are using XEmacs, then you
646
also need to edit the EMACS entry as follows: EMACS=xemacs).
648
You can compile those files by:
651
When that completes successfully, install the compiled files:
654
This will install the compiled info files and lisp files. If you
655
are an XEmacs user, then you should be done. If not, then you may
656
have to edit/create the file `dir' that is found in the directory
657
specified by `INFODIR': see the sample `dir' in
658
ESSDIR/ess-VERSION/doc/info. If `dir' does not exist in
659
`INFODIR', then the sample `dir' will be installed.
661
_Note:_ ESS can be installed for XEmacs as an XEmacs package much
662
more easily than what has been described anywhere above. However,
663
the latest ESS version will not be available at the same time as an
664
XEmacs package; generally, it can take weeks or months to appear
665
in the latter format. For more information on installing ESS as
666
an XEmacs package see Quickstart Package Guide
667
(http://www.xemacs.org/Documentation/packageGuide.html).
670
1.9 Microsoft Windows installation
671
==================================
673
For Microsoft Windows installation, please follow the next steps: (see
674
separate instructions above for UNIX *Note Unix installation::.
676
1. cd to a directory where you keep emacs lisp files, or create a new
677
directory (for example, `c:\emacs\') to hold the distribution.
678
This directory will be referred to below as "the ESS distribution
679
directory". It will contain, at the end, either the tar file
680
`ess-VERSION.tar.gz' or the zip file `ess-VERSION.zip', and a
681
directory for the ESS source, which will be termed "the
682
ESS-VERSION source directory".
684
2. Retrieve the compressed tar file `ess-VERSION.tar.gz' or the
685
zipped file `ess-VERSION.zip' from one of the FTP or WWW archive
686
sites via FTP (or HTTP). Be aware that http browsers on Windows
687
frequently change the "." and "-" characters in filenames to other
688
punctuation. Please change the names back to their original form.
690
3. Copy `ess-VERSION.tar.gz' to the location where you want the
691
ess-VERSION directory, for example to
692
`c:\emacs\ess-VERSION.tar.gz', and cd there. For example,
696
Extract the files from the distribution, which will unpack into a
697
subdirectory, `ess-VERSION'.
698
gunzip ess-VERSION.tar.gz
699
tar xvf ess-VERSION.tar
700
(or: `gunzip < ess-VERSION.tar.gz | tar xvf -' ).
701
(or: from the zip file: `unzip ess-VERSION.zip')
703
The `tar' command will extract files into the current directory.
705
Do not create `ess-VERSION' yourself, or you will get an extra
706
level of depth to your directory structure.
708
4. Windows users will usually be able to use the `lisp/ess-site.el'
709
as distributed. Only rarely will changes be needed.
711
5. Windows users will need to make sure that the directories for the
712
software they will be using is in the PATH environment variable.
713
On Windows 9x, add lines similar to the following to your
714
`c:\autoexec.bat' file:
715
path=%PATH%;c:\progra~1\spls2000\cmd
716
On Windows NT/2000/XP, add the directories to the PATH using the
717
`My Computer/Control Panel/System/Advanced/Environment Variables'
718
menu. Note that the directory containing the program is added to
719
the PATH, not the program itself. One such line is needed for
720
each software program. Be sure to use the abbreviation `progra~1'
721
and not the long version with embedded blanks. Use backslashes
725
(load "/PATH/ess-site")
726
to your .emacs (or _emacs) file (or default.el or site-init.el, for
727
a site-wide installation). Replace `/PATH' above with the value
728
of ess-lisp-directory as defined in `ess-site.el'. Use
729
forwardslashes `/'. (GNU Emacs uses the filename `%HOME%/.emacs'
730
and XEmacs uses the filename `%HOME%/.xemacs/init.el' for the
731
initialization file.)
733
7. To edit statistical programs, load the files with the requisite
734
extensions (".sas" for SAS, ".S" or "s" or "q" or "Q" for S-PLUS,
735
".r" or ".R" for R, and ".lsp" for XLispStat).
737
8. To run statistical processes under emacs:
739
To start the S-PLUS [67].x GUI from ESS under emacs:
742
You will then be asked for a pathname ("S starting data
743
directory?"), from which to start the process. The prompt will
744
propose your current directory as the default. ESS will start the
745
S-PLUS GUI. There will be slight delay during which emacs is
746
temporarily frozen. ESS will arrange for communication with the
747
S-PLUS GUI using the DDE protocol. Send lines or regions from the
748
emacs buffer containing your S program (for example, `myfile.s')
749
to the S-PLUS Commands Window with the `C-c C-n' or `C-c C-r' keys.
750
(If you are still using S-PLUS 4.x or 2000, then use `M-x S+4'.)
752
To start an S-PLUS [67].x session inside an emacs buffer--and
753
without the S-PLUS GUI:
756
You will then be asked for a pathname ("S starting data
757
directory?"), from which to start the process. The prompt will
758
propose your current directory as the default. You get Unix-like
759
behavior, in particular the entire transcript is available for
760
emacs-style search commands. Send lines or regions from the emacs
761
buffer containing your S program (for example, `myfile.s') to the
762
*S+6* buffer with the `C-c C-n' or `C-c C-r' keys. Interactive
763
graphics are available with Sqpe by using the java library
764
supplied with S-PLUS 6.1 and newer releases. Enter the commands:
767
Graphs can be saved from the `java.graph' device in several
768
formats, but not PostScript. If you need a PostScript file you
769
will need to open a separate `postscript' device. (If you are
770
still using S-PLUS 4.x or 2000, then use `M-x Sqpe+4'.)
772
To connect to an already running S-PLUS GUI (started, for example,
773
from the S-PLUS icon):
775
You will then be asked for a pathname ("S starting data
776
directory?"), from which to start the process. The prompt will
777
propose your current directory as the default. ESS will arrange
778
for communication with the already running S-PLUS GUI using the
779
DDE protocol. Send lines or regions from the emacs buffer
780
containing your S program (for example, `myfile.s') to the S-PLUS
781
Commands Window with the `C-c C-n' or `C-c C-r' keys. (If you are
782
still using S-PLUS 4.x or 2000, then use `M-x S+4-existing'.)
784
If you wish to run R, you can start it with:
639
787
XLispStat can not currently be run with
641
Hopefully, this will change. However, you can still edit with
642
Emacs, and cut and paste the results into the XLispStat
643
*Listener* Window under Microsoft Windows.
645
SAS for Windows uses the batch access with function keys that is
646
described in `doc/README.SAS'. The user can also edit SAS files
647
in an `ESS[SAS]' buffer and than manually copy and paste them
648
into an Editor window in the SAS Display Manager.
650
For Windows, inferior SAS in an `iESS[SAS]' buffer does not work
651
on the local machine. It does work over a network connection to
652
SAS running on a remote Unix computer.
654
Reason: we use ddeclient to interface with programs and SAS
655
doesn't provide the corresponding ddeserver capability.
663
Please send bug reports, suggestions etc. to
789
Hopefully, this will change. However, you can still edit with
790
emacs, and cut and paste the results into the XLispStat *Listener*
791
Window under Microsoft Windows.
799
Please send bug reports, suggestions etc. to
665
801
<ESS-bugs@stat.math.ethz.ch>