q.default | R Documentation |
The default method q.default
terminates the current R session.
## Default S3 method: q( O = save, p = status, lower.tail = runLast, log.p = FALSE, save = "default", status = 0, runLast = TRUE, ... )
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. |
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()
.
q
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.