View source: R/write_tableHTML.R
write_tableHTML | R Documentation |
write_tableHTML
will write the HTML code to a file
write_tableHTML(tableHTML, file, complete_html = FALSE)
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. |
write_tableHTML
will write the HTML code to a file.
The function itself returns nothing but a file is created.
## Not run:
write_tableHTML(tableHTML(mtcars), file = 'myhtmlcode.html')
write_tableHTML(tableHTML(mtcars), file = 'myhtmlcode.html', complete_html = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.