pptNewSlide: Adds new slide to existing PowerPoint object and adds text...

Description Usage Arguments Value See Also Examples

Description

Adds new slide to existing PowerPoint object and adds text and plot.

Usage

1
2
3
  pptNewSlide(ppt, title = NULL, text = NULL,
    subtitle = NULL, file = NULL,
    size = c(0.1, 0.1, 0.9, 0.9))

Arguments

ppt

Pointer to ppt object, generated by pptNew

title

Slide title

text

Slide text

subtitle

Slide subtitle - only added to Title slide

file

Location and file name of a plot

size

A numeric vector of size 4, indicating c(x1, y1, x2, y2) expressed as percentage of page size

Value

A pointer to a ppt object

See Also

Other PowerPoint: pptClose, pptNew, pptOpen, pptSave

Examples

1
2
3
4
5
6
7
8
if(isCOMsupported(method="RDCOMClient")){
  ppt <- pptNew()
  ppt <- pptNewSlide(ppt) # This should be blank
  ppt <- pptNewSlide(ppt, "Title", subtitle="Subtitle")
  ppt <- pptNewSlide(ppt, "Title only")
  ppt <- pptNewSlide(ppt, "Title with text", "Level1\n\tLevel 2 item 1\n\tLevel 2 item 2\n\t\tLevel 3\nBack to level 1")
  rm(ppt)
}

andrie/braidppt documentation built on May 10, 2019, 11:18 a.m.