ReporteRs (version 0.2)

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

Object of class "pptx"

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 {
# Create a new document
doc = pptx( title = "title" )

# add a slide with layout "Title Slide"
doc = addSlide( doc, slide.layout = "Title Slide" )
doc = addTitle( doc, "Presentation title" ) #set the main title
doc = addSubtitle( doc , "This document is generated with ReporteRs.")#set the sub-title

# Write the object in file "~/presentation.pptx"
writeDoc( doc, "~/presentation.pptx" )
# }

Run the code above in your browser using DataCamp Workspace