insert_data_chunk_template: Insert an empty data chunk template in active source document

Description Usage Value Author(s) See Also Examples

View source: R/rstudio_addins.R

Description

This function is essentially the equivalent for data chunks of the "Insert a new code chunk" menu item available in Rstudio when a Rmarkdown document is open. It places at the current cursor location an empty data chunk that can then be modified and filled in by hand.

Usage

1

Value

Invisibly returns the chunk contents as a character vector, one line of text per element.

Author(s)

David M. Kaplan dmkaplan2000@gmail.com

See Also

Other Chunk tools: create_chunk(), create_data_chunk_dialog(), list_rmd_chunks(), remove_chunks_dialog()

Examples

1
2
3
4
## Not run: 
insert_data_chunk_template()

## End(Not run)

knitrdata documentation built on Dec. 8, 2020, 5:08 p.m.