Learn R Programming

htmlreportR (version 1.0.0)

build-htmlReport-method: Build HTML report from template

Description

This function builds an HTML report from a given template file for an object of class "htmlReport".

Value

A new instance of the htmlreportR class

Arguments

template

A character string specifying the file path of the template.

Details

Build HTML report from template

This function reads the contents of the template file, sets up Knitr options for rendering, renders the template using Knitr, and constructs the HTML report by combining the rendered template with the existing report content in the "htmlReport" object.