This function helps preview a widget in the dashboard with or without the header and sidebar.

fdPreview(widget, title = deparse(substitute(widget)), wrap = "rowbox", ...,
  wrapBox = NULL)

fdPreviewBoard(widget, title = deparse(substitute(widget)), wrap = "rowbox",
  ..., wrapBox = NULL)

Arguments

widget
widget to preview
title
title to display
wrap
string indicating if the widget is to be wrapped in a 'row', 'box', 'rowbox' or 'none' fdRowBox
...
additional elements to pass to fdBody.
wrapBox
boolean indicating if we should set wrap = 'rowbox'

Examples

library(flightdeck)
fdSimpleTable(mtcars) %>% fdPreview(title = 'Simple Table')
fdSimpleTable(mtcars) %>% fdPreviewBoard(title = 'Simple Table')