q(n=0)
Using an exclamation mark (!) as the first character of a command "escapes" the command to the operating system. Such escapes can, at times, be more efficient than quitting S-PLUS and then restarting it later.
!vi foo # edit a file - when the editor is exited, control is returned to S-PLUSq() # quit S-PLUS % echo $status 0
% Splus options(error=expression({cat("Quitting at first error\n");q(123)})) 1///4 Syntax error: */ ("/") used illegally at this point: 1// Quitting at first error % echo $status 123