sprinkle_caption {pixiedust} | R Documentation |
Change the Caption in a Dust Table
Description
The table caption is often used as a brief title, but may also be used to provide a longer statement explaining how to interpret the table results.
Usage
sprinkle_caption(x, caption, ...)
## Default S3 method:
sprinkle_caption(x, caption, ...)
## S3 method for class 'dust_list'
sprinkle_caption(x, caption, ...)
Arguments
x |
An object of class |
caption |
|
... |
Additional arguments to pass to other methods. Currently ignored. |
Details
The caption may be set during the initial dust
call. This
method allows for modification afterward, such as in the case of when a
dust
object is loaded from memory and the initial call cannot be
accessed.
Functional Requirements
Change the
caption
attribute of thedust
object.Cast an error if
x
is not adust
object.Cast an error if
caption
is not a character object.Cast an error if
caption
has length greater than 1.
Author(s)
Benjamin Nutter
See Also
[Package pixiedust version 0.9.4 Index]