Learn R Programming

knitrdata (version 0.5.0)

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

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

insert_data_chunk_template()

Arguments

Value

Returns TRUE if a chunk was inserted, FALSE otherwise.

See Also

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

Examples

Run this code
# NOT RUN {
insert_data_chunk_template()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab