Download Unix User Guide
Transcript
SETTING ENVIRONMENT VARIABLES Table 9.1: Variables. Specifies which pager to use. Sets the value of S_PAGER options()$pager; the specified pager is used by the page, help, and ? functions. S_POSTSCRIPT_PRINT_COMMAND Specifies the UNIX command (lp, lpr, etc.) used to send files to a PostScript printer. S_PRINTGRAPH_ONEFILE Determines whether plots generated by the postscript function are accumulated in a single file (TRUE) or whether each plot is put in a separate EPS file. This environment variable sets the default for the onefile arguments to ps.options and postscript. S_PRINT_ORIENTATION Specifies the orientation of the graphic as landscape or portrait. Determines the default value of the horizontal argument to ps.options and printgraph. S_SHELL Specifies the shell used during shell escapes, that is, commands issued from the escape character (!). The default value is the value of SHELL. S_SILENT_STARTUP Disable printing of copyright/version messages. S_WORK Specifies the location of the working data directory, that is, the directory in which S-PLUS creates and reads data objects. Equivalent to SWORK. VISUAL Sets the command line editor to either emacs or vi. Overridden by S_CLEDITOR if it contains a valid value. Many of the variables in this section take effect if you set them to any value, and do not take effect if you do not set them, so you may leave them unset without harm. For example, to set S_SILENT_STARTUP you can enter: setenv S_SILENT_STARTUP X on the command line and S-PLUS will not print its copyright information on startup, because the variable S_SILENT_STARTUP has a value (any value). User code can check the current values for these variables by using getenv from C or S code. 315