R: Check whether current R session supports X11 or not

capabilitiesX11 {R.devices} | R Documentation

## Check whether current R session supports X11 or not

### Description

Check whether current R session supports X11 or not.

Contrary to `capabilities("X11")` which only checks for X11 support on startup [1], this function checks whether X11 is supported when it is called. This is done by querying a temporary R session.

### Usage

    capabilitiesX11(reset=FALSE, ...)

### Arguments

`reset` | If `TRUE`, any previously obtained results are ignored, otherwise not.
`...` | (optional) `character` strings of command-line options to `Rscript`.

### Value

Returns `TRUE` if X11 is supported, otherwise `FALSE`.

### Author(s)

Henrik Bengtsson

### References

[1] R-devel thread 'capabilities("X11"): Force refresh from within R? (... and minor documentation issue)' on 2015-05-06, https://stat.ethz.ch/pipermail/r-devel/2015-May/071100.html

### See Also

`capabilities`()

[Package R.devices version 2.16.0 Index]