Usage
sizingPolicy(defaultWidth = NULL, defaultHeight = NULL, padding = NULL,
viewer.defaultWidth = NULL, viewer.defaultHeight = NULL,
viewer.padding = NULL, viewer.fill = TRUE, viewer.suppress = FALSE,
viewer.paneHeight = NULL, browser.defaultWidth = NULL,
browser.defaultHeight = NULL, browser.padding = NULL,
browser.fill = FALSE, knitr.defaultWidth = NULL,
knitr.defaultHeight = NULL, knitr.figure = TRUE)
Arguments
defaultWidth
The default width used to display the widget. This
parameter specifies the default width for viewing in all contexts (browser,
viewer, and knitr) unless it is specifically overridden with e.g.
browser.defaultWidth
.
defaultHeight
The default height used to display the widget. This
parameter specifies the default height for viewing in all contexts
(browser, viewer, and knitr) unless it is specifically overridden with e.g.
browser.defaultHeight
.
padding
Padding around the widget (in pixels). This parameter
specifies the padding for viewing in all contexts (browser and viewer)
unless it is specifically overriden by e.g. browser.padding
.
viewer.defaultWidth
The default width used to display the widget
within the RStudio Viewer.
viewer.defaultHeight
The default height used to display the widget
within the RStudio Viewer.
viewer.padding
Padding around the widget when displayed in the RStudio
Viewer (defaults to 15 pixels).
viewer.fill
When displayed in the RStudio Viewer, automatically size
the widget to the viewer dimensions (note that viewer.padding
is
still applied). Default to TRUE
.
viewer.suppress
Never display the widget within the RStudio Viewer
(useful for widgets that require a large amount of space for rendering).
Defaults to FALSE
.
viewer.paneHeight
Request that the RStudio Viewer be forced to a
specific height when displaying this widget.
browser.defaultWidth
The default width used to display the widget
within a standalone web browser.
browser.defaultHeight
The default height used to display the widget
within a standalone web browser.
browser.padding
Padding around the widget when displayed in a
standalone browser (defaults to 40 pixels).
browser.fill
When displayed in a standalone web browser, automatically
size the widget to the browser dimensions (note that browser.padding
is still applied). Defaults to FALSE
.
knitr.defaultWidth
The default width used to display the widget within
documents generated by knitr (e.g. R Markdown).
knitr.defaultHeight
The default height used to display the widget
within documents generated by knitr (e.g. R Markdown).
knitr.figure
Apply the default knitr fig.width and fig.height to the
widget when it's rendered within R Markdown documents. Defaults to
TRUE
.