addSubtitle: Add a subtitle shape into a document object

Description Usage Arguments Details Value See Also Examples

View source: R/addSubtitle.R

Description

Add a subtitle shape into a document object

Add a addSubtitle shape into a pptx object.

Usage

1
2
3
4
addSubtitle(doc, ...)

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

Arguments

doc

document object

...

further arguments passed to other methods

value

"character" value to use as subtitle text

Details

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

Value

a document object

See Also

pptx

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if( check_valid_java_version() ){
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 )
}

davidgohel/ReporteRs documentation built on March 23, 2020, 11 p.m.