The default method q.default
terminates the current R session.
# S3 method for default
q(
O = save,
p = status,
lower.tail = runLast,
log.p = FALSE,
save = "default",
status = 0,
runLast = TRUE,
...
)
place holder for generic, by default set to save, default: save.
place holder for generic, by default set to status, default: status.
place holder for generic, by default set to runLast, default: runLast.
place holder for generic, default: FALSE.
a character string indicating whether the environment (workspace) should be saved, one of "no", "yes", "ask" or "default", default: 'default'.
the (numerical) error status to be returned to the operating system, where relevant. Conventionally 0 indicates successful completion, default: 0.
should .Last() be executed?, default: TRUE.
further arguments to be passed.
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()
.