View source: R/reproducibleR.R
reproducibleR | R Documentation |
This is the main RMarkdown chunk hook for processing the automated reproducibility tests of code chunks. This function is not intended to be called directly. Rather, it is expected that RStudio calls this function when rendering chunks with the label identical to this function name.
reproducibleR(options)
options |
A list of chunk options passed from the knitr engine. Usually this is just the object options passed to the engine function; see knit_engines. |
This function first executes the R code from a given chunk. If a variable is declared within the scope of the chunk, meta information about the variable's content are generated. If no metadata exists, this metadata is stored in a separate file. If metadata exists, it is compared against the metadata of the reproduction attempt.
A character string generated from the source code and output.
Andreas M. Brandmaier
reproducibleR(knitr::opts_chunk$merge(list(engine="reproducibleR",code="1+1")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.