Generate Section RMD command

Allows generation of RMD strings to implement sections (level=1), subsections (level=2), subsubsections (level=3), etc. Sections can be numbered (numbered=TRUE) or unnumbered (numbered=FALSE). A label can be given to be able to crossreference this section.

rmdSECTION(title = "Section Title", label = NULL, level = 1, numbered = TRUE)

Arguments

title

Character string with title of section

label

Character string (no spaces) with label for cross-reference use. Limited to 40 characters.

level

Integer value (1,2,3,etc.) to indicate the section level

numbered

Boolean to define if section shoud be numbered or not (experimental)

Value

Section RMD command as IQRrmd object

Details

Unnumbered sections have the limitation to level=1 and only a single unnumbered section can be present in a document - the first one.