q
Quit From Spotfire Enterprise Runtime for R

### Description

Terminates the current session.

### Usage

    q(save = "default", status = 0, runLast = TRUE)
    quit(save = "default", status = 0, runLast = TRUE)

### Arguments

save | character string. One of "yes", "no", "ask" or "default". The default is "default".
status | integer value. The exit code.
runLast | logical flag. If TRUE and a .Last function has been defined, it is run. The default is TRUE.

### Details

The q function is acceptable as an error option. This can be useful, for instance, by forcing BATCH jobs to quit on the first error.
Side Effects
Causes termination of the Spotfire Enterprise Runtime for R session and returns to the operating system. If one or more graphics devices are active, a device-dependent wrap-up routine will be executed for each active device. The function .Last, if it exists, will be called before quitting unless runLast=FALSE.
See Also
.Last, options
Examples

    ## Not run:
    q()  # quit session normally - typically asks user to save workspace
    q(save="no")  # quit session without saving workspace
    # on Linux, view return status after process exits:
    #
    #  0
    q(save="yes", status=123)  # quit session with status code and saving workspace
    # on Linux, view return status after process exits
    #
    #  123
    options(error=quote(q("no", status=1)))
    # The next error will quit the session

    ## End(Not run)

Package base version 6.1.5-18
Package Index