add_section_header_y2: Add Blank PowerPoint Section Header

View source: R/add_section_header_y2.R

add_section_header_y2R Documentation

Add Blank PowerPoint Section Header

Description

This function adds a new PowerPoint section header along with a title box

Usage

add_section_header_y2(
  title = "Title",
  n = "1",
  slide_name = "XM Sidebar (1)",
  master_name = "1_Office Theme",
  text_boxes = TRUE
)

Arguments

title

DEFAULT: "Title"; Add a title in quotes here to have your Section Headers put in for you by R

n

DEFAULT: "1"; The number added to your section header. If section 2, put "2", etc.

slide_name

DEFAULT: "Section Header"; The name of the type of the PP slide you want added to the PP

master_name

DEFAULT: "Office Theme"; The name of the PP master layout that the slide_name comes from

text_boxes

DEFAULT = TRUE; Automatically adds a title and section number. Set to FALSE for no text boxes

Examples

# Before adding additional slides, charts, or tables onto a powerpoint,
# you must first read a powerpoint into R
## Not run: 
doc <- read_pptx('~/Y2 Analytics Dropbox/Y2 Analytics Team Folder/Projects/
Qualtrics/2021 Template and Resources/Template for mscharts.pptx')
doc <- add_section_header_y2()
print(doc, '~/Desktop/test.pptx')

## End(Not run)

nick-moffitt/y2artisan documentation built on July 30, 2023, 5:40 p.m.