powered by
Insert text into a document.
includeText(path, data = parent.frame(), quiet = TRUE)
An R object of class "knit_asis" (defined in the knitr package), the data of which represents the content of the child document (after knitr::knit())
knitr::knit()
Path to the child document.
Environment or list used to knit the child document.
Passed to knitr::knit().
template <- tempfile() cat("Hello, `r name`.\n", file = template) includeText(template, data = list(name = "Alice")) file.remove(template)
Run the code above in your browser using DataLab