Learn R Programming

ReportingTools (version 2.12.2)

objectToHTML-methods: Transform R objects into HTML form to be inserted in HTML reports

Description

Unless overridden by a .toHTML argument, this function is called to transform objects being published into HTML form before they are inserted into a report.

Arguments

Methods

signature(object = "ANY")
The default method for objectToHTML calls toReportDF (or the overriding .toDF) then modifyReportDF (or the overriding .modifyDF) to create a data.frame to be published. The data.frame method of objectToHTML is then called.
signature(object = "character")
If the character vector contains HTML code (determined by attempted parsing), it is parsed but otherwise unchanged. If not, it is added as content to a new

HTML node.

signature(object = "data.frame")
The data.frame is transformed into a filterable, sortable HTML table
signature(object = "ggbio")
The graphic is written to the report's figure directory and an tag to display the image is returned
signature(object = "ggplot")
The graphic is written to the report's figure directory and an tag to display the image is returned
signature(object = "recordedplot")
The graphic is written to the report's figure directory and an tag to display the image is returned
signature(object = "trellis")
The graphic is written to the report's figure directory and an tag to display the image is returned