switchboard: Initialize a switchboard window

Description Usage Arguments See Also Examples

View source: R/switchboard.R

Description

The switchboard initializes a switchboard window, then using %>% you can pipe in various widgets into this window to create a dashboard.

Usage

1
2
3
4
5
6
7
8
9
switchboard(
  title = "hidden title",
  delay = 0,
  skip = 0,
  padX = 10,
  padY = 0,
  font = "Helvetica",
  mainColors = c("#007fff", "#ffffff", "#666666", "#cccccc")
)

Arguments

title

The title of the switchboard Tcl/Tk window. Switchboards hide the titlebar, but is can be un-hidden by adding a title (e.g., title = "my new title".

delay

Pause each update of the switchboard. Default has no delay, values are in seconds (e.g., delay = 0.01 results in 0.01 second delay with each iteration).

skip

Skips updating the switchboard. The default does not skip updates, values are in number of iterations to skip (e.g., skip = 50 results in updates only occurring after every 50 iterations).

padX

Horizontal padding in pixels between widgets.

padY

Vertical padding in pixels between widgets.

font

The primary font used in all widgets, default is "Helvetica".

mainColors

The color set used in all widgets. It is a vector of four hex colors with each element corresponding to: c("main color", "background", "text color", "alt text color").

See Also

Other dashboard: showGrid(), switchboard_close()

Examples

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

   for(i in 1:100)
      switchboard(delay = 0.05) %>%
      progress_ibis(i, maximum = 100, closeAtMaximum = TRUE)


## End(Not run)

switchboard documentation built on Oct. 9, 2021, 1:06 a.m.