R: Execute a command in the GUI client

guiCmd {svMisc} | R Documentation

## 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.

### Details

You must define a function `.guiCmd()` in the `SciViews: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.

### Value

The result of the command if it succeed, or `NULL` if the command cannot be run (i.e., `.guiCmd()` is not defined in `SciViews:TempEnv`).

### Author(s)

Philippe Grosjean (phgrosjean@sciviews.org)

### See Also

`assignTemp`

[Package svMisc version 0.9-70 Index]