View source: R/run_example_as_chunk.R
run_example_as_chunk | R Documentation |
Knits an R source file contained in the examples folder of a package
run_example_as_chunk(example_file, chunk_name, package = "RUBer")
example_file |
Character, name of the R script file with the example |
chunk_name |
Character, name of the code chunk when knitting |
package |
Character, name of the package |
Character, text to be inserted in the Markdown file
RUBer:::run_example_as_chunk( example_file = "rub_plot_type_1.R", chunk_name = "rub-plot-type-1", package = "RUBer" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.