Download S-PLUS 8 for Windows User's Guide

Transcript
Chapter 11 Customizing Your S-PLUS Session
CUSTOMIZING YOUR SESSION AT STARTUP AND CLOSING
Setting Your
Startup
Options
If you routinely set one or more options each time you start S-PLUS,
or you want to automatically attach library sections or S-PLUS
chapters, you can store these choices and have S-PLUS set them
automatically whenever the program starts.
When you start S-PLUS, the following initialization steps occur:
1. Basic initialization brings the evaluator to the point of being
able to evaluate expressions.
2. S-PLUS then looks for the standard initialization file
%SHOME%/S.init. This is a text file containing S-PLUS
expressions. The default initialization file performs the
remaining steps in this list.
3. If your system administrator has performed any site
customization in the file %SHOME%/local/S.init, the
actions in that file are evaluated next. You can edit this to set
actions to be performed at startup for every project.
4. S-PLUS next looks for the file %SHOME%/S.chapters,
which is a text file containing paths of library sections or
S-PLUS chapters to be attached for all users. By default, this
file does not exist, since only the standard S-PLUS libraries are
attached during the basic initialization. This affects all
projects.
5. S-PLUS next looks for your personal S.chapters file in your
current folder. You should list in this file any library sections
or S-PLUS chapters you want attached at startup of the current
project.
6. S-PLUS then determines your working data.
7.
S-PLUS evaluates the customization file S.init if it is found in
the current folder. The S.init file is a text file containing
S-PLUS expressions that are executed at the start of your
session. Note that this file is different from %SHOME%/
S.init, which affects all users’ sessions.
8. S-PLUS evaluates the function .First.Sys, which includes
evaluating the local system initialization function
.First.local, if it exists.
554