| dm_paste | R Documentation |
dm_paste() takes an existing dm and emits the code necessary for its creation.
dm_paste(dm, select = NULL, ..., tab_width = 2, options = NULL, path = NULL)
dm |
A |
select |
Deprecated, see |
... |
Must be empty. |
tab_width |
Indentation width for code from the second line onwards |
options |
Formatting options. A character vector containing some of:
Default |
path |
Output file, if |
The code emitted by the function reproduces the structure of the dm object.
The options argument controls the level of detail: keys, colors,
table definitions.
Data in the tables is never included, see dm_ptype() for the underlying logic.
Code for producing the prototype of the given dm.
dm() %>%
dm_paste()
dm_nycflights13() %>%
dm_paste()
dm_nycflights13() %>%
dm_paste(options = "select")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.