knit_print.TrialComparisonTable: Render a Trial Comparison Table in knitr

View source: R/f_comparison_table.R

knit_print.TrialComparisonTableR Documentation

Render a Trial Comparison Table in knitr

Description

Renders data frames prepared by as.data.frame.TrialComparison() with output = "auto", "html", or "pdf". HTML tables scroll horizontally. LaTeX tables use longtable and split wide results into column blocks, repeating the identifier columns in each block.

Usage

## S3 method for class 'TrialComparisonTable'
knit_print(x, ...)

Arguments

x

A TrialComparisonTable returned by as.data.frame.TrialComparison().

...

Further arguments passed to the ordinary knitr data-frame renderer when the target is neither HTML nor LaTeX.

Details

PDF mode emits a LaTeX fragment for the surrounding document. It requires the suggested rmarkdown package and declares the longtable dependency via knitr metadata. No PDF file is created directly by this method.

Value

A knitr::asis_output object for HTML or LaTeX. Other targets use the ordinary knitr data-frame representation. Empty tables emit no output.


rpact documentation built on Nov. 17, 2026, 1:07 a.m.