Given a tangram class, a series of conversion creates an HTML5 representation of the table. It may be an HTML5 fragment or it may be a complete web page.
# S3 method for tangram
html5(
object,
id = NULL,
caption = NULL,
fragment = NULL,
style = NULL,
footnote = NULL,
inline = NULL,
fixed_thead = NULL,
...
)
A text string rendering of the given table in HTML5
The cell table to render to HTML5
A unique identifier for the table (strongly recommended). If not provided, caption will be used.
A string caption for the table
A boolean flag that determines whether a fragment or a complete HTML5 document is generatedf
A string containing a style filename to include as inline CSS. It first searches the drive for the file, if that fails it looks inside the package for a matching css file.
Any footnotes to include under the table.
DEPRECATED
logical; fixes the header using position sticky in CSS defaults to FALSE
additional arguments to renderer. Unused
The package includes several css files for styling. At present the following exist: 'hmisc.css', 'lancet.css', 'lancet-stripped.css' and 'nejm.css'