ReporteRs (version 0.7.2)

addTitle.bsdoc: Insert a title into a bsdoc object

Description

Add a title into a bsdoc object.

Usage

## S3 method for class 'bsdoc':
addTitle(doc, value, level = 1, id, ...)

Arguments

doc
bsdoc object
value
"character" value to use as title text
level
"integer" positive value to use as heading level. 1 for title1, 2 for title2, etc. Default to 1.
id
character single and unique value to use as title id.
...
further arguments, not used.

Value

  • an object of class bsdoc.

See Also

bsdoc, addTitle

Examples

Run this code
doc.filename = "addTitle_bsdoc/example.html"

# set default font size to 11
options( "ReporteRs-fontsize" = 11 )

doc = bsdoc( )

doc = addTitle( doc, "Title example 1", level = 1 )


doc = addTitle( doc, "Title example 2", level = 1 )

# Write the object
writeDoc( doc, file = doc.filename )

Run the code above in your browser using DataCamp Workspace