ReporteRs (version 0.7.0)

styles.docx: Get styles names of a docx document

Description

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

Usage

## S3 method for class '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
# Create a new document
doc = docx( title = "title" )
styles(doc) #returns available paragraph styles in a character vector

Run the code above in your browser using DataCamp Workspace