paste.knit_asis: Paste and output as is (render markup)

Description Usage Arguments Details Value Examples

View source: R/rmarkdown_helpers.R

Description

Helper function for knit_asis objects, useful when e.g. partial() was used in a loop.

Usage

1
paste.knit_asis(..., sep = "\n\n\n", collapse = "\n\n\n")

Arguments

...

passed to base::paste()

sep

defaults to two empty lines, passed to base::paste()

collapse

defaults to two empty lines, passed to base::paste()

Details

Works like base::paste() with both the sep and the collapse argument set to two empty lines

Value

Returns text with the class "knit_asis"

Examples

1
paste.knit_asis("# Headline 1", "## Headline 2")

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