Learn R Programming

tableHTML (version 2.1.2)

write_tableHTML: Writes the HTML code to a file

Description

write_tableHTML will write the HTML code to a file

Usage

write_tableHTML(tableHTML, file, complete_html = FALSE)

Value

The function itself returns nothing but a file is created.

Arguments

tableHTML

A tableHTML object created by the tableHTML function.

file

A character string. This is the file name. You need to include the extention.

complete_html

Either TRUE or FALSE. Defaults to FALSE. If TRUE then the <html> and <body> tags are also added in the file.

Details

write_tableHTML will write the HTML code to a file.

Examples

Run this code
if (FALSE) {
write_tableHTML(tableHTML(mtcars), file = 'myhtmlcode.html')

write_tableHTML(tableHTML(mtcars), file = 'myhtmlcode.html', complete_html = TRUE)
}

Run the code above in your browser using DataLab