Search notes:

R function: quit

quit terminates the current R session.
q is an alias for quit.

Saving workspace image

By default, quit() asks if the workspace image should be saved. The parameter save can be set to the string no or yes (or ask or default) so that no further interaction is required.
> q(save='no')
Saving the workspace image can also be prevented by starting R with --no-save.

See also

Index to (some) R functions

Index