ReporteRs (version 0.7.7)

addTitle.pptx: Insert a title into a pptx object

Description

Add a title into a pptx object.

Usage

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

Arguments

doc
pptx object
value
"character" value to use as title text
...
further arguments, not used.

Value

  • an object of class pptx.

See Also

pptx, addTitle, addSlide.pptx

Examples

Run this code
doc.filename = "addTitle_example.pptx"

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

doc = pptx( title = "title" )

# add a slide with layout "Title and Content"
doc = addSlide( doc, slide.layout = "Title and Content" )

doc = addTitle( doc, "Title example 1" )

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

Run the code above in your browser using DataCamp Workspace