This function makes a HTML document using output generated with functions in the R3port package or any other HTML code available as vector. Basically it adds tags to a html template file and let's the user select various options to customize the output.
html_doc(
text,
out = NULL,
show = TRUE,
rtitle = "report",
template = paste0(system.file(package = "R3port"), "/simple.html"),
rendlist,
css = paste0(system.file(package = "R3port"), "/style.css")
)character vector to be placed within HTML document
character with filename for the output HTML file (if NULL it will print to console)
logical indicating if the resulting pdf file from the compiled tex file should be opened when created
string indicating the title of the output document
character with file name of the template file to use
list with render items to be used for the template file (see whisker::whisker.render)
character with name of the css style sheet to use, default use package style sheet
The function returns a HTML file (or writes output to console)
This function is used as wrapper within multiple functions in the R3port package but is also convenient in case custom information should be placed within an output document