write_htmlTable: Write an 'htmlTable' to file

View source: R/utils2.R

write_htmlTableR Documentation

Write an htmlTable to file

Description

Write an htmlTable object to a file with optional html attributes.

Usage

write_htmlTable(x, file = "", attributes = TRUE)

Arguments

x

a string, e.g., the return of htmlTable

file

a character string naming the file to print to; "", the default, prints to the console; other values (NULL, logicals, etc.) return x

attributes

logical; if TRUE, html attributes are added and default border color names are replaced with hexadecimal values

Examples

x <- htmlTable::htmlTable(head(cars))

write_htmlTable(x)
write_htmlTable(x, attributes = FALSE)


raredd/rawr documentation built on Feb. 25, 2025, 1:48 p.m.