ReporteRs (version 0.8.8)

addPageNumber.pptx: Insert a page number shape into a document pptx object

Description

Insert a page number shape into the current slide of a pptx object.

Usage

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

Arguments

doc

pptx object

value

character value to add into the page number shape of the current slide. optionnal. If missing current slide number will be used.

...

further arguments, not used.

Value

a pptx document object

See Also

addPageNumber, addDate

Examples

Run this code
# NOT RUN {
doc.filename <- "add_page_number_example.pptx"
doc <- pptx( title = "title" )
doc <- addSlide( doc, slide.layout = "Title Slide" )
# add a page number on the current slide ---
doc <- addPageNumber( doc )
doc <- addSlide( doc, slide.layout = "Title and Content" )
# add a page number with free text ----
doc <- addPageNumber( doc, value = "Page number text")
writeDoc( doc, file = doc.filename )
# }

Run the code above in your browser using DataCamp Workspace