Batch (Non-Interactive) Execution of S-PLUS

DESCRIPTION:

Executes a file of S-PLUS expressions and places the results in another file or the normal output destination (stdout/stderr). This is useful for simulations and other computer-intensive but predetermined tasks. This has been replaced by .

USAGE:

Splus BATCH in out [-j [options]]

REQUIRED ARGUMENTS:

in
the name of a file containing S-PLUS expressions to be executed. The file may contain source and sink commands, etc. Interactive graphics devices ( tek4014, hpgl, etc.) should specify a file name for their output in non-interactive mode.
out
the name of a file which will receive all of the output from the run. The file out will contain a listing of each expression in in, followed by any printed output produced by the expression. If you do not want the input printed in out, put options(echo=F) as the first command in in. The file out will contain any printed output produced by the expression. If you want the input commands to be printed in out along with the output of the commands, put options(echo=T) as the first command in in.

OPTIONAL ARGUMENTS:

-j
Runs the Java-enabled version of S-PLUS. This allows functions such as java.graph or .JavaMethod to be called from a BATCH script. After specifying the -j option, other options which are appropriate to use with Java-enabled S-PLUS can be specified.

SIDE EFFECTS:

the out file is created, and objects in S-PLUS data directories may be changed.

WARNING:

Execution begins immediately after BATCH is invoked. If you are on a UNIX system, you may want to put the BATCH job in the background or use the UNIX at (or chron) command to delay execution.

SEE ALSO:

, .

EXAMPLES:

Splus BATCH batch1.in batch1.out