as.partial: Convert text or file to a partial

Description Usage Arguments Value Examples

View source: R/partial.R

Description

This adds the knit_asis class to a markdown chunk, so that it can be rendered in the viewer and simply echoed in other knitr chunks. Won't preserve figures unless the path happens to be the same or you explicitly pass it to the knit_meta argument.

Usage

1
as.partial(text = NULL, knit_meta = list())

Arguments

text

will be returned with the class "knit_asis"

knit_meta

you can pass a path to figures and other resources here

Value

Returns its input as text with class "knit_asis"

Examples

1
2
my_partial <- as.partial("## Headline
Text")

rubenarslan/rmarkdownpartials documentation built on June 10, 2020, 11:17 p.m.