Skip to contents

Return HTML of table

Usage

return_html(x, include_css = TRUE, write = FALSE, path = "table.txt")

Arguments

x

A table object generated by table_format. Note that the return_html argument of table_format must be set to FALSE (default) for this function to work.

include_css

If TRUE, returns inline CSS for table formatting. TRUE by default. This is only returned if return_html is also TRUE

write

If TRUE, write results to the file specified in the path argument. FALSE by default.

path

File path to be written to if write is TRUE. "table.txt" in working directory by default.

Value

The HTML of the table provided.

Examples

table_format(cars) %>% return_html(write = TRUE, path = "Figure1.txt")