q.default {mistr} | R Documentation |
Terminate an R Session
Description
The default method q.default
terminates the current R session.
Usage
## Default S3 method:
q(
O = save,
p = status,
lower.tail = runLast,
log.p = FALSE,
save = "default",
status = 0,
runLast = TRUE,
...
)
Arguments
O |
place holder for generic, by default set to save, default: save. |
p |
place holder for generic, by default set to status, default: status. |
lower.tail |
place holder for generic, by default set to runLast, default: runLast. |
log.p |
place holder for generic, default: FALSE. |
save |
a character string indicating whether the environment (workspace) should be saved, one of "no", "yes", "ask" or "default", default: 'default'. |
status |
the (numerical) error status to be returned to the operating system, where relevant. Conventionally 0 indicates successful completion, default: 0. |
runLast |
should .Last() be executed?, default: TRUE. |
... |
further arguments to be passed. |
Details
This method is designed to quit R if the q()
without a distribution is called.
The reason for such an implementation is R-Studio in Linux and Mac systems, where
the software calls q()
(rather than base::q()
) once the R-Studio window
is closed. Such implementation solves the issued with the overwriting of q()
.