Description Usage Arguments Value See Also Examples
View source: R/addPageNumber.pptx.R
Insert a page number shape into the current slide of a pptx object.
1 2  | ## S3 method for class 'pptx'
addPageNumber(doc, value, ...)
 | 
doc | 
 
  | 
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.  | 
a pptx document object
1 2 3 4 5 6 7 8 9 10 11  | if( check_valid_java_version() ){
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 )
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.