ReporteRs (version 0.8.2)

styles.docx: Get styles names of a docx document

Description

Get styles names that exist into the template (base document).

Usage

# S3 method for docx
styles(doc, ...)

Arguments

doc

Object of class docx to extract style names from.

...

further arguments, not used.

Details

Available styles will be paragraph styles of the base document (e.g. Normal, Title1, etc.). Names of the returned character vector are labels associated with styles names.

See Also

docx, styles

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
# Create a new document
doc = docx( title = "title" )
styles(doc) #returns available paragraph styles in a character vector
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace