report_Helper: Helper functions for markdown sectioning

Description Usage Arguments Value Examples

Description

A collection of helper functions for easier sectioning of markdown documents. They take care that e.g. control commands for new lines ("\newline" or "<br>") are correctly positioned by adding "\n" before and after a structure.

Usage

1
2
3
4
5
.newPage(delim)

.header(level, text)

.section(level, text, delim)

Arguments

delim

character (required): Keyword specifying the delimiter insterted before the section. Usually "<br>" or "<hr>" for HTML and "\\newpage" for PDF reports.

level

integer (required): A non-negative integer specifying the section level.

text

character (optional): The comment text to be inserted in the section.

Value

Text output via cat.

Examples

1
2
3
.newPage("\\newpage")
.header(1, "My Header")
.section(2, "My Section", "<hr>")

tzerk/ESReport documentation built on May 3, 2019, 2:04 p.m.