includeText: Insert text into a document.

View source: R/includeMedia.R

includeTextR Documentation

Insert text into a document.

Description

Insert text into a document.

Usage

includeText(path, data = parent.frame(), quiet = TRUE)

Arguments

path

Path to the child document.

data

Environment or list used to knit the child document.

quiet

Passed to knitr::knit().

Value

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())

Examples

template <- tempfile()
cat("Hello, `r name`.\n", file = template)
includeText(template, data = list(name = "Alice"))
file.remove(template)


juicedown documentation built on Sept. 8, 2023, 5:11 p.m.