Learn R Programming

ReporteRs (version 0.8.10)

addSubtitle: Add a subtitle shape into a document object

Description

Add a subtitle shape into a document object

Add a addSubtitle shape into a pptx object.

Usage

addSubtitle(doc, ...)

# S3 method for pptx addSubtitle(doc, value, ...)

Arguments

doc

document object

...

further arguments passed to other methods

value

"character" value to use as subtitle text

Value

a document object

Details

Subtitle shape only exist in slide of type 'Title Slide'.

See Also

pptx

Examples

Run this code
# NOT RUN {
doc.filename = "addSubtitle_example.pptx"
doc <- pptx()
doc <- addSlide( doc, slide.layout = "Title Slide" )
#set the main title
doc <- addTitle( doc, "Presentation title" )
#set the sub-title
doc <- addSubtitle( doc , "This document is generated with ReporteRs.")
writeDoc( doc, file = doc.filename )
# }

Run the code above in your browser using DataLab