The `PivotLatexRenderer` class creates a Latex representation of a pivot table.
R6Class
object.
new()
Create a new `PivotLatexRenderer` object.
PivotLatexRenderer$new(parentPivot = NULL)
clearIsRenderedFlags()
An internal method used when rendering a pivot table to Latex Clear the IsRendered flags that exist on the `PivotDataGroup` class.
resetVisibleRange()
Clears the visible range that has been set, so the next call to `getTableLatex()` will render the whole table.
setVisibleRange()
Specifies a subset of the pivot table to be rendered, e.g. for use when a pivot table will not fit into a single A4 page.
PivotLatexRenderer$setVisibleRange(
fromRow = NULL,
toRow = NULL,
fromColumn = NULL,
toColumn = NULL
)
getTableLatex()
Generate a Latex representation of the pivot table.
PivotLatexRenderer$getTableLatex(
caption = NULL,
label = NULL,
boldHeadings = FALSE,
italicHeadings = FALSE,
exportOptions = NULL
)
caption
The caption to appear above the table.
label
The label to use when referring to the table elsewhere in the document
boldHeadings
Default `FALSE`, specify `TRUE` to render headings in bold.
italicHeadings
Default `FALSE`, specify `TRUE` to render headings in italic.
exportOptions
A list of additional export options - see the "A1. Appendix" for details.
# This class should only be created by the pivot table.
# It is not intended to be created outside of the pivot table.