ReporteRs (version 0.7.2)

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

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

# Here we fill the title shape with "My title"
doc = addTitle( doc, "My title" )

# Write the object in file "addTitle_example.pptx"
writeDoc( doc, "addTitle_example.pptx" )

Run the code above in your browser using DataCamp Workspace