closeCommander {Rcmdr.HH}R Documentation

close R Commander with option to close without querying user

Description

Close the R Commander GUI (graphical user interface), with option to close without querying the user about saving files. A warning is issued if the R Commander is not open.

Usage

closeCommander(exitQ=TRUE,
               scriptQ=exitQ,
               outputQ=exitQ)

Arguments

exitQ Should we query user to confirm exiting Rcmdr?
scriptQ Should we query user for a filename to save the Rcmdr script window?
outputQ Should we query user for a filename to save the Rcmdr output window?

Details

The default argument values TRUE give the same bahavior as the original closeCommander. The alternate value FALSE forces Rcmdr to close without querying the user and without saving any windows.

The objects "commanderWindow", "logWindow", "messagesWindow", "outputWindow" in the "RcmdrEnv" are set to NULL.

Author(s)

Changes by Richard M. Heiberger <rmh@temple.edu>, based on original by John Fox jfox@mcmaster.ca

Examples

## Not run: 
   closeCommander()  ## default behavior
   closeCommander(exitQ=FALSE)  ## force no queries and no saves
## End(Not run)

[Package Rcmdr.HH version 1.7-3 Index]