Quit the S-PLUS Session

DESCRIPTION:

Quits the current S-PLUS session immediately, without waiting for the end of the current top-level expression. Optionally, can be used to exit with a non-zero exit status.

USAGE:

exit(error = FALSE)

ARGUMENTS:

error
logical flag. If TRUE, S-PLUS exits with status 1, which can be tested in the shell script that starts the S-PLUS process.

VALUE:

None.

DETAILS:

The exit function does not generate a S-PLUS error; in particular, any top-level assignments in the current task are committed.

SEE ALSO:

, .

EXAMPLES:

   
# Caution: This example will end your S-PLUS session
exit(error=T)