Skip to contents

A one-line section break: a slide on the template's "Section Header" layout (falling back to a plain titled slide when the template has none). Use a short, single-word label – "DEMOGRAPHICS", "RATINGS", "APPENDIX" – to chapter a deck.

Usage

report_section(doc, title, layout = "Section Header", master = NULL)

Arguments

doc

A document from report_new().

title

Section label.

layout

Section layout name. Defaults to "Section Header".

master

Optional master name.

Value

The updated document.

Examples

doc <- report_new("pptx") %>% report_section("DEMOGRAPHICS")
class(doc)
#> [1] "rpptx"