Skip to contents

Retrieve the R Markdown text from an object of class Chunk.

Usage

rmd(x)

# S4 method for Chunk
rmd(x)

Arguments

x

S4 object of class Chunk

Examples

x <- chunk(1 + 1)
rmd(x)
#> ```{r}
#> 1 + 1
#> ```