make_header: Automatically number headers in markdown file

Description Usage Arguments Value Examples

Description

Returns a function that can automatically number headers. Only support header 3, 4, 5.

Usage

1
make_header(n = 1)

Arguments

n

The number of the first header 3.Default 1.

Value

A function with a integer parameter(3, 4, 5, 6) that can automatically number headers

Examples

1
2
3
4
5
h <- make_header()
# write in rmarkdown
`r h(3)` H3

`r h(4)` H4

fountainer/fountainr documentation built on May 16, 2019, 1:51 p.m.