obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
# Adding content based on placeholder elements
obnd = report_add_slide(obnd,
template = "content_text",
elements = list(
title = list( content = "Text Example",
type = "text"),
sub_title = list( content = "Adding a slide with a block of text",
type = "text"),
content_body = list( content = "A block of text",
type = "text")))
# Adding content based on specified locations
obnd = report_add_slide(obnd,
template = "two_content_header_text",
user_location = list(
text_example = list( content = "This is text",
type = "text",
start = c(.01,.02),
stop = c(.3,.15))))
Run the code above in your browser using DataLab