View source: R/sprinkle_justify.R
sprinkle_justify | R Documentation |
The justification of the table determines the horizontal placing of the table on the page.
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"), ...)
x |
An object of class |
justify |
|
... |
Additional arguments to pass to other methods. Currently ignored. |
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.
Change the justify
attribute of the dust
object.
Cast an error if x
is not a dust
object.
Cast an error if justify
is not one of "center"
,
"none"
, "left"
, or "right"
.
Ignore capitalization of the justify
argument.
Benjamin Nutter
dust
, sprinkle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.