Description Usage Arguments Details Functions Author(s) See Also Examples
Opens a Shiny dialog allowing the user to specify the content and chunk
options of a data chunk. As different dialog elements are specified, other
elements will be modified to suggest likely desired values. For example, if a
binary file is uploaded, then the format
will be set to binary
,
the encoding
will be set to base64
and the Encode data?
option will be checked. If these options are not appropriate, then they can
be altered afterwards.
1 2 3 | create_data_chunk_dialog(insert.editor.doc = FALSE)
insert_data_chunk_dialog(insert.editor.doc = TRUE)
|
insert.editor.doc |
Whether or not to insert output chunk into active
RStudio editor document at cursor position. Defaults to |
When the Create chunk
button is clicked, the function will return the
chunk contents including header and tail. If insert.editor.doc==TRUE
,
then the resulting chunk will be inserted into the active document in the
RStudio editor at the cursor position.
insert_data_chunk_dialog
is a wrapper for
create_data_chunk_dialog(insert.editor.doc=TRUE)
.
create_data_chunk_dialog
: Invisibly returns the text of the data
chunk as a character vector, one line of text per element.
insert_data_chunk_dialog
: Invisibly returns the text of the data
chunk as a character vector, one line of text per element, if a chunk was
inserted. Returns NULL
otherwise.
David M. Kaplan dmkaplan2000@gmail.com
Other Chunk tools:
create_chunk()
,
insert_data_chunk_template()
,
list_rmd_chunks()
,
remove_chunks_dialog()
1 2 3 4 5 6 7 8 9 | ## Not run:
create_data_chunk_dialog()
## End(Not run)
## Not run:
insert_data_chunk_dialog()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.