run_example_as_chunk: Knits an R source file contained in the examples folder of a...

View source: R/run_example_as_chunk.R

run_example_as_chunkR Documentation

Knits an R source file contained in the examples folder of a package

Description

Knits an R source file contained in the examples folder of a package

Usage

run_example_as_chunk(example_file, chunk_name, package = "RUBer")

Arguments

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

Value

Character, text to be inserted in the Markdown file

Examples

RUBer:::run_example_as_chunk(
  example_file = "rub_plot_type_1.R",
  chunk_name = "rub-plot-type-1",
  package = "RUBer"
)

RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.