View source: R/add_section_header_y2.R
add_section_header_y2 | R Documentation |
This function adds a new PowerPoint section header along with a title box
add_section_header_y2(
title = "Title",
n = "1",
slide_name = "XM Sidebar (1)",
master_name = "1_Office Theme",
text_boxes = TRUE
)
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 |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.