quit terminates the current R session. q is an alias for quit. 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')
R with --no-save.