[ top | up ]

Terminate an R Session

Syntax

quit(save="ask")
q(save="ask")

Arguments

save a character string indicating whether the environment (workspace) should be saved.

Description

save must be one of "no", "yes", or "ask". In the first case the workspace is not saved, in the second it is saved and in the third the user is prompted. Invoking these functions results in the termination of the current R session.