addDate: Insert a date

Description Usage Arguments Details Value See Also Examples

View source: R/addDate.pptx.R

Description

Insert a date into a document object

Usage

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

## S3 method for class 'pptx'
addDate(doc, value, str.format = "%Y-%m-%d", ...)

Arguments

doc

document object

...

further arguments passed to other methods

value

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

str.format

character value to use to format current date (if value is missing).

Details

addDate only works for pptx documents.

Value

a document object

See Also

pptx, addFooter, addPageNumber

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if( check_valid_java_version() ){
doc <- pptx()

doc <- addSlide( doc, slide.layout = "Title and Content" )
## add a date on the current slide
doc = addDate( doc )

doc <- addSlide( doc, slide.layout = "Title and Content" )
## add a page number on the current slide but not
## the default text (slide number)
doc = addDate( doc, "Dummy date" )
}

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