set_external {contextual}R Documentation

Change Default Graphing Device from RStudio

Description

Checks to see if the user is in RStudio. If so, then it changes the device to a popup window.

Usage

set_external(ext = TRUE, width = 10, height = 6)

Arguments

ext

A logical indicating whether to plot in a popup or within the RStudio UI.

width

Width in pixels of the popup window

height

Height in pixels of the popup window

Details

Depending on the operating system, the default drivers attempted to be used are:

OS X: quartz()

Linux: x11()

Windows: windows()

Note, this setting is not permanent. Thus, the behavioral change will last until the end of the session.

Also, the active graphing environment will be killed. As a result, any graphs that are open will be deleted.

Examples

## Not run: 

# Turn on external graphs
external_graphs()

# Turn off external graphs
external_graphs(F)

## End(Not run)


[Package contextual version 0.9.8.4 Index]