| sprinkle_justify {pixiedust} | R Documentation |
Change the Caption in a Dust Table
Description
The justification of the table determines the horizontal placing of the table on the page.
Usage
sprinkle_justify(x, justify = getOption("pixie_justify", "center"), ...)
## Default S3 method:
sprinkle_justify(x, justify = getOption("pixie_justify", "center"), ...)
## S3 method for class 'dust_list'
sprinkle_justify(x, justify = getOption("pixie_justify", "center"), ...)
Arguments
x |
An object of class |
justify |
|
... |
Additional arguments to pass to other methods. Currently ignored. |
Details
For HTML tables, the values "center",
"left", and "right" all justify the table as expected.
It is important to note, however, that "left" and "right"
will cause subsequent elements to be rendered next to the table, not
below it. To render the table with left alignment without this side
effect, use "none".
In LaTeX output, both "right" and "left" justify
to the left. This may change in the future if I find a resolution. Using
"none" also results in left justification.
Functional Requirements
Change the
justifyattribute of thedustobject.Cast an error if
xis not adustobject.Cast an error if
justifyis not one of"center","none","left", or"right".Ignore capitalization of the
justifyargument.
Author(s)
Benjamin Nutter