Skip to contents

Custom Templates

Creating and testing yaml mapping files for custom templates

read_template()
Read Word or PowerPoint Templates
view_layout()
Generate Annotated Layout for Report Templates
preview_template()
Generate Report Previewing the Locations From Mapping File
save_report()
Save Onbrand Report to a File
template_details()
Show Template Details for `onbrand` Object

PowerPoint

Workflow for creating presentations

read_template()
Read Word or PowerPoint Templates
add_pptx_ph_content()
Populate Placeholder In Officer Report
report_add_slide()
Add Slide and Content
save_report()
Save Onbrand Report to a File
template_details()
Show Template Details for `onbrand` Object
fph()
Fetch PowerPoint Placeholder

Word

Workflow for creating written reports

read_template()
Read Word or PowerPoint Templates
report_add_doc_content()
Add Content to Body of a Word Document Report
save_report()
Save Onbrand Report to a File
template_details()
Show Template Details for `onbrand` Object
fst()
Fetch Word Style

Markdown

Converting markdown to officer

fetch_md_def()
Fetch Markdown Default Format from onbrand Object
md_to_officer()
Parse Markdown for Officer
md_to_oo()
Parse Markdown into Officer as_paragraph Result
ft_apply_md()
Render Markdown in flextable Object

Officer Objects

Using officer directly to modify reports

fetch_officer_object()
Extracts Officer Object From Onbrand Report Object
set_officer_object()
Places Officer Object Into Onbrand Report Object

Miscellanious

Other useful functions

build_span()
Construct Table Span From Components
fetch_rpttype()
Determines Type of Report Template
fetch_report_format()
Fetch The Specified Report Formatting Information
mk_lg_tbl()
Creates Large Table Data for Testing
span_table()
Spread Large Table Over Smaller Tables
onbrand-package onbrand
onbrand: officer Abstraction Layer for Organizational Templates