set_external: Change Default Graphing Device from RStudio

Description Usage Arguments Details Examples

View source: R/functions_utility.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
## Not run: 

# Turn on external graphs
external_graphs()

# Turn off external graphs
external_graphs(F)

## End(Not run)

contextual documentation built on July 26, 2020, 1:06 a.m.