ReporteRs (version 0.8.1)

addSubtitle.pptx: Insert a addSubtitle shape into a pptx object

Description

Add a addSubtitle shape into a pptx object.

Usage

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

Arguments

doc

pptx object

value

"character" value to use as subtitle text

...

further arguments, not used.

Value

an object of class pptx.

Details

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

See Also

pptx, addSubtitle

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
doc.filename = "addSubtitle_example.pptx"

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

doc = pptx( title = "title" )
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.")

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

Run the code above in your browser using DataCamp Workspace