Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

q.default

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().

See Also

q


mistr

Mixture and Composite Distributions

v0.0.4
GPL-3
Authors
Lukas Sablica [aut, cre] (<https://orcid.org/0000-0001-9166-4563>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.