guiCmd: Execute a command in the GUI client
Description
This function is not intended to be used at the command line (except for
debugging purposes). It executes a command string to a (compatible) GUI client.Usage
guiCmd(command, ...)
guiImport(...)
guiExport(...)
guiLoad(...)
guiReport(...)
guiSave(...)
guiSetwd(...)
guiSource(...)
Arguments
command
the command string to execute in the GUI client.
...
parameters provided for the command to execute in the GUI
client.
Value
- The result of the command if it succeed, or
NULL
if the command cannot
be run (i.e., .guiCmd()
is not defined in TempEnv
).
concept
Graphical user interface (GUI) controlDetails
You must define a function .guiCmd()
in the TempEnv
environment
that will take first argument as the name of the command to execute (like
source
, save
, import
, etc), and ...with arguments to
the command to send. Depending on your GUI, you should have code that
delegates the GUI elements (ex: display a dialog asking for a .Rdata file to
source) and then, execute the command in R with the selected file as
attribute.