R: Don't we ask something though the GUI?

dontAsk {svGUI} | R Documentation

## Don't we ask something though the GUI?

### Description

Determine if R code execution can be interrupted by the GUI, e.g., a modal dialog box.

### Usage

    dontAsk(gui = .GUI)

### Arguments

`gui` | a 'gui' object.

### Details

Methods for 'gui' objects can dispatch as usual using `amethod(...., gui = agui)` but note that these methods do not dispatch on first provided argument, but to the named argument `gui`. There is another way to call 'gui' methods: `agui$amethod(....)`. This may be a convenient alternative for those who prefer this style of calling object's methods.

### Value

`TRUE` if the GUI cannot interupt. The function triggering the dialog box should then not display it and should return the default value as the result. The function returns `TRUE` if R is run in a non interactive session, or if `ask` is se to `FALSE` for the GUI, or if it is not specified, that is, its value is `NULL`, if `getOptions("gui.ask")` is `FALSE`.

### Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

### See Also

`guiAsk`, `gui`

### Examples

    ## Wat's the current state for the default GUI
    dontAsk()

[Package svGUI version 0.9-55 Index]