Learn R Programming

rmdpartials (version 0.5.8)

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

Description

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

Usage

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

Value

Returns text with the class "knit_asis"

Details

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

Examples

Run this code
# NOT RUN {
paste.knit_asis("# Headline 1", "## Headline 2")
# }

Run the code above in your browser using DataLab