markdown_pass1: Expand the embedded inline code

Description Usage Arguments Details Value

View source: R/markdown.R

Description

Expand the embedded inline code

Usage

1

Arguments

text

Input text.

Details

For example this becomes two: 2. Variables can be set and then reused, within the same tag: The value of x is 100.

We have access to the internal functions of the package, e.g. since this is roxygen2, we can refer to the internal markdown function, and this is TRUE: TRUE.

To insert the name of the current package: roxygen2.

The iris data set has 5 columns: Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species.

# Code block demo
x + 1
1
## [1] 101

Chunk options:

names(mtcars)
nrow(mtcars)
1
2
3
##  [1] "mpg"  "cyl"  "disp" "hp"   "drat" "wt"   "qsec" "vs"   "am"   "gear"
## [11] "carb"
## [1] 32

Plots:

plot(1:10)

test-figure-1.png

Value

Text with the inline code expanded. A character vector of the same length as the input text.


roxygen2 documentation built on Sept. 8, 2021, 9:08 a.m.